上一页 1 ··· 122 123 124 125 126 127 128 129 130 ··· 189 下一页
摘要: import requests from bs4 import BeautifulSoup url1 = "https://www.zzlian.com/33.html" html = requests.get(url1).content html=html.decode('utf-8') # py 阅读全文
posted @ 2021-10-25 06:16 myrj 阅读(960) 评论(0) 推荐(0)
摘要: import requests,sys from bs4 import BeautifulSoup def gethml(url): rr=requests.get(url) s=rr.content s.decode("ISO-8859-1") return s html=gethml(url) 阅读全文
posted @ 2021-10-24 19:20 myrj 阅读(80) 评论(0) 推荐(0)
摘要: 下载 markupbase 阅读全文
posted @ 2021-10-24 16:30 myrj 阅读(29) 评论(0) 推荐(0)
摘要: select * from mm1 where ma not regexp '[ABCDEF]' 查询ma字段中不包含ABCDEF中任意字符的所有记录select * from mm1 where ma regexp '[ABCDEF]' 查询ma字段中包含ABCDEF中任意字符的所有记录selec 阅读全文
posted @ 2021-10-21 12:31 myrj 阅读(63) 评论(0) 推荐(0)
摘要: url="https://www.liepin.com/campus/" import requests from bs4 import BeautifulSoup rr=requests.get(url) soup =BeautifulSoup(rr.text, "lxml") for itema 阅读全文
posted @ 2021-10-21 06:49 myrj 阅读(511) 评论(0) 推荐(0)
摘要: url="https://www.liepin.com/job/1932123793.shtml" import requests from bs4 import BeautifulSoup rr=requests.get(url) soup =BeautifulSoup(rr.text, "lxm 阅读全文
posted @ 2021-10-20 20:42 myrj 阅读(236) 评论(0) 推荐(0)
摘要: 今天写爬虫,遇到一个坑,提示[scrapy.core.scraper] ERROR: Spider must return request, item, or None, got 'Tag' in <GET https://www. 其实原因很意外,我在代码中使用了item,同时scrapy又用it 阅读全文
posted @ 2021-10-20 19:35 myrj 阅读(3021) 评论(0) 推荐(0)
摘要: def __init__(self, *args, **kwargs): super(MmzzSpider, self).__init__(*args, **kwargs) # 这里是关键 self.count=0 def parse_item(self, response): soup =Beau 阅读全文
posted @ 2021-10-19 22:06 myrj 阅读(69) 评论(0) 推荐(0)
摘要: from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC from selen 阅读全文
posted @ 2021-10-16 20:09 myrj 阅读(124) 评论(0) 推荐(0)
摘要: python3爬虫:爬虫进阶之ajax数据爬取发布时间: 2019-02-06 19:21:14动态网页数据抓取什么是AJAX:AJAX(Asynchronouse JavaScript And XML)异步JavaScript和XML。通过在后台与服务器进行少量数据交换,Ajax 可以使网页实现异 阅读全文
posted @ 2021-10-16 10:41 myrj 阅读(128) 评论(0) 推荐(0)
上一页 1 ··· 122 123 124 125 126 127 128 129 130 ··· 189 下一页