随笔分类 -  爬虫

ximalaya-spider
摘要:import requests import parsel, re, json headers = { 'user-agent': 'Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.26 阅读全文
posted @ 2020-12-25 09:22 风雨无阻! 阅读(91) 评论(0) 推荐(0)
spider-bilibili
摘要:# 话不多说,直接上源码import urllib, requests import urllib.request as req import re import json import subprocess headers = { 'user-agent': 'Mozilla/5.0 (Windo 阅读全文
posted @ 2020-12-18 11:21 风雨无阻! 阅读(98) 评论(0) 推荐(0)
python 爬取豆瓣电影写入到excel中
摘要:1 from bs4 import BeautifulSoup 2 import requests 3 import urllib.request as req 4 import xlwt 5 6 class Spider(object): 7 def __init__(self): 8 self. 阅读全文
posted @ 2020-12-09 17:22 风雨无阻! 阅读(216) 评论(0) 推荐(0)