parser.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:google-crawler 作者: xibowang 项目源码 文件源码
def read_bytes_data():
    with open('sample.bytes', 'rb') as file:
        content = file.read()
        # dom = BeautifulSoup(gzip.decompress(content))
        data = gzip.decompress(content)
        # soup = BeautifulSoup(data, 'html.parser')
        # links = soup.find_all('a', {'class':'l _HId'})
        # for link in links:
        #     print(link.get('href'))
        # print(soup.prettify())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号