惠小助线报机器人为您实时提供全网最新羊毛活动线报网

招行价格排序python3源码

只要是让你充钱的100%都是骗子,切记不要充1分钱!

刚看到吧友需要,把源码也发出来吧 十分钟临时做的小脚本比较糙 能用就行~import requests

from bs4 import BeautifulSoup

url = 'https://ssl.mall.cmbchina.com/_SJ_/Product/ProductSearchListAjaxLoad?keyWord=&N=&sort=30&pageIndex='

for i in range(1000):

    response = requests.get(url=url+str(i))

    soup = BeautifulSoup(response.text, 'lxml')

    titles = soup.find_all('h4')

    prices = soup.find_all(class_='fl')

    for index in range(0, len(titles)):

        print(prices[index].text+titles[index].text)

        with open('价格.txt', 'a', encoding='utf-8') as f:  # 写文件

            f.write(prices[index].text+titles[index].text + '\n')复制代码

文章标签:
相关主题: 正官庄红参精价格

微信公众号:赚客撸羊毛

最大线报网站