• 大小: 69KB
    文件类型: .py
    金币: 1
    下载: 0 次
    发布日期: 2021-06-18
  • 语言: Python
  • 标签: Python  APP  反爬  

资源简介

利用Python实现GUI编程,通过构造不用类,实现定向抓取淘宝商品、每日优鲜商品、比价网商品、天猫超市商品来获取目标商品最新价格、优惠、销量信息。程序内附一定反爬技术。以上全部基于移动端抓取实现。 打包利用--pyinstaller

资源截图

代码片段和文件信息

#!/usr/bin/env python3
# -*- coding:utf-8 -*-
# Author: CCCCold丶kl
import json
import time
import random
import datetime
import requests
import pandas as pd
import matplotlib as mpl
import matplotlib.pyplot as plt
from tkinter import *
from urllib import error
from urllib.parse import *
from lxml import etree
from requests.packages import urllib3

urllib3.disable_warnings()
now_date = time.strftime(“%Y-%m-%d“ time.localtime(time.time()))
now_time = time.strftime(“%Y-%m-%d-%H-%M-%S“ time.localtime(time.time()))
phone_list = [
    18303517744
    13613416611
    15219466201
    15036222256
    18438888133
    18876941131
    18876622089
    18889262767
    13715150077
    13717033838
    18351078990
    13467719111
    15997693333
    13730600607
    13699051071
    13849038741
    18352936688
    13880888292
    18822441999
    15777770130
    15777772845
    13727693111
    13632577333
    15976856868
    18222167181
    13512960022
    13530102266
    18300666187
    15824817777
    18349333171
    13838555227
    15890005577
    15890008887
    13838200888
    13924853168
    18822488887
    13972911999
    13428334566
    13566102222
    13732097555
    15233333323
    13682987828
    13923918859
    18859981392
    15818692899
    15012563066
    18222522000
    13828716737
    13692298935
    13706053195
    13887441413
    18322040999
    13911336673
    13801391870
    13433196988
    13702485588
    13924578588
    13924852345
    18823143456
    13637666699
    13755630022
    13920593529
    18702888838
    15198120000
    13908057178
    18844227188
    18750468844
    13505952075
    15768179999
    18356194521
    13696754521
    13788829706
    15208275054
    18777770214
    13551275898
    18280151115
    13677777254
    18769721000
    18897777726
    15814226133
    15918128980
    15918129083
    15918129282
    15918129090
    18300077779
    15022277000
    15875766666
    18428088892
    15703382298
    15131712232
    15732922520
    13874677777
    18255555551
    18393897777
    15180222225
    13505740467
    13780390000
    18859567892
    15277775445
    13662688881
    18213777222
    13761746746
    15000505062
    14761188884
    13809070207
    13818357698
    13873179698
    18817871288
    15112998888
    15703361816
    15290911121
    15107555885
    18396217171
    13825876548
    13619870320
    13778891234
    13548291222
    18282200022
    18402898980
    18328025788
    15228886138
    17878781118
    15123888444
    15837182792
    15838125087
    18703896718
    18736011629
    18839781750
    18837170569
    15777776964
    18761755000
    18751373210
    15962711155
    15962792088
    18761755088
    13656291113

评论

共有 条评论