
网络爬虫
戴夫爱吃胡萝卜
这个作者很懒,什么都没留下…
展开
-
网络爬虫案例——豆瓣电影排名
import requests from bs4 import BeautifulSoup # 取得html def getHtml(html): url=html headers={ "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36" } t原创 2020-05-09 22:13:22 · 568 阅读 · 0 评论 -
网络爬虫案例——猫眼电影排名
import requests import re # 取得html def getHtml(html): url=html headers={ "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36" } try: respons原创 2020-05-09 22:11:42 · 303 阅读 · 0 评论 -
网络爬虫案例——前程无忧网java岗位
import requests from lxml import etree # 取得html def getHtml(html): url=html headers={ "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36" } try:原创 2020-05-09 22:10:15 · 339 阅读 · 0 评论 -
网络爬虫案例——TIOBE指数前20名排行开发语言
import requests from lxml import etree # 取得html def getHtml(html): url=html headers={ "User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36" } try:原创 2020-05-09 22:09:00 · 589 阅读 · 0 评论