├── .gitattributes ├── .gitignore ├── 3.csv ├── JDPackage ├── __init__.py ├── account.py ├── coupon.py ├── datacontrol.py ├── lotterypack.py ├── mlogin.py ├── mloginPYV8.py ├── rk.py ├── spider.py └── spider.pyc ├── [单线程]领卷模式1示例.py ├── [多线程]领卷模式1示例.py ├── cookies.csv ├── readme.md ├── 循环测水示例.py ├── 批量抽奖预约.py ├── 批量评价示例.py ├── 抽奖代码爬虫示例.py ├── 抽奖实例(不带代理).py ├── 抽奖实例(带代理).py ├── 浏览器载入Cookies.py ├── 账户信息查询.py ├── 遍历所有抽奖代码抽奖.py └── 领取a.jd.com优惠券示例.py /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Byte-compiled / optimized / DLL files 2 | __pycache__/ 3 | *.py[cod] 4 | 5 | # C extensions 6 | *.so 7 | 8 | # Distribution / packaging 9 | .Python 10 | env/ 11 | build/ 12 | develop-eggs/ 13 | dist/ 14 | downloads/ 15 | eggs/ 16 | lib/ 17 | lib64/ 18 | parts/ 19 | sdist/ 20 | var/ 21 | *.egg-info/ 22 | .installed.cfg 23 | *.egg 24 | 25 | # PyInstaller 26 | # Usually these files are written by a python script from a template 27 | # before PyInstaller builds the exe, so as to inject date/other infos into it. 28 | *.manifest 29 | *.spec 30 | 31 | # Installer logs 32 | pip-log.txt 33 | pip-delete-this-directory.txt 34 | 35 | # Unit test / coverage reports 36 | htmlcov/ 37 | .tox/ 38 | .coverage 39 | .cache 40 | nosetests.xml 41 | coverage.xml 42 | 43 | # Translations 44 | *.mo 45 | *.pot 46 | 47 | # Django stuff: 48 | *.log 49 | 50 | # Sphinx documentation 51 | docs/_build/ 52 | 53 | # PyBuilder 54 | target/ 55 | 56 | # ========================= 57 | # Operating System Files 58 | # ========================= 59 | 60 | # OSX 61 | # ========================= 62 | 63 | .DS_Store 64 | .AppleDouble 65 | .LSOverride 66 | 67 | # Thumbnails 68 | ._* 69 | 70 | # Files that might appear on external disk 71 | .Spotlight-V100 72 | .Trashes 73 | 74 | # Directories potentially created on remote AFP share 75 | .AppleDB 76 | .AppleDesktop 77 | Network Trash Folder 78 | Temporary Items 79 | .apdisk 80 | 81 | # Windows 82 | # ========================= 83 | 84 | # Windows image file caches 85 | Thumbs.db 86 | ehthumbs.db 87 | 88 | # Folder config file 89 | Desktop.ini 90 | 91 | # Recycle Bin used on file shares 92 | $RECYCLE.BIN/ 93 | 94 | # Windows Installer files 95 | *.cab 96 | *.msi 97 | *.msm 98 | *.msp 99 | 100 | # Windows shortcuts 101 | *.lnk 102 | -------------------------------------------------------------------------------- /3.csv: -------------------------------------------------------------------------------- 1 | "url" 2 | "http://zy3songshu.jd.com/" 3 | "http://zan.jd.com/" 4 | "http://z.jd.com/" 5 | "http://yumacp.jd.com/" 6 | "http://yiyao.jd.com/" 7 | "http://yingxiang.jd.com/" 8 | "http://yangshengtangyybj.jd.com/" 9 | "http://xuan.jd.com/" 10 | "http://xjk.jr.jd.com/" 11 | "http://xinren.jd.com/" 12 | "http://xinpin.jd.com/" 13 | "http://xihuan.jd.com/" 14 | "http://xdfdy.jd.com/" 15 | "http://www.jd.hk/"" target=""_blank"">全球购 16 | 17 |
64 | 钱包>(.*?)
', add, re.S)[0] 109 | phone = re.findall('(.*?)
', add, re.S)[1] 110 | print(itemname) 111 | print(orderid, name, address, phone) 112 | print('===================================') 113 | payment_list.append({'orderID': orderid, 114 | 'name': name, 115 | 'address': address, 116 | 'phone': phone, 117 | 'item': itemname, 118 | 'sku': sku}) 119 | except: 120 | pass 121 | return payment_list 122 | 123 | def get_msglist(self): 124 | msglist = [] 125 | headers = {'cookie': self.ck_pc} 126 | html = re.findall('