web crawler library for static websites

What you need to crawling static websites.

python 3 library:

requests
connect to websites and working with URLs.

** beautiful soup**
a Python library for pulling data out of HTML and XML files. you can navigating the DOM tree or searching the DOM tree using css selector or re.

urllib
a package that collects several modules for working with URLs:
urllib.request
for opening and reading URLs
urllib.parse
for parsing URLs

import requests
from bs4 import BeautifulSoup as bs 
import urllib
import re
Get Started with my github guide:

https://github.com/HoweZZH/EasyScraping

References:

https://www.crummy.com/software/BeautifulSoup/
https://www.crummy.com/software/BeautifulSoup/bs4/doc/
https://realpython.com/blog/python/web-scraping-with-scrapy-and-mongodb/

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • afinalAfinal是一个android的ioc,orm框架 https://github.com/yangf...
    passiontim阅读 15,785评论 2 45
  • PLEASE READ THE FOLLOWING APPLE DEVELOPER PROGRAM LICENSE...
    念念不忘的阅读 14,602评论 5 6
  • 两种最普遍的推荐系统的类型是基于内容和协同过滤(CF)。协同过滤基于用户对产品的态度产生推荐,基于内容的推荐系统基...
    Guolz阅读 13,574评论 6 15
  • 每个有心进取的人,都有一颗奔腾躁动的心,一路上不断的努力前进,也不断的半途而废,不管前路是否有知己,总是带着希望在...
    浮尘过隙阅读 1,720评论 0 0
  • 设计模式———装饰模式 例子:成绩单报告 在面向对象的设计中,如果超过两层继承,可能就出设计问题了。这是经验总结,...
    书笔年华阅读 3,196评论 0 0

友情链接更多精彩内容