Created
May 3, 2017 02:10
-
-
Save luxin88/a0d7b9c381fc970ade4f76c435bc49eb to your computer and use it in GitHub Desktop.
Revisions
-
luxin88 created this gist
May 3, 2017 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- import requests allList = [] for i in range(1, 23): listPayload = dict(action="loadvoteoptionbypage", guid="2cdb51ca-ef8a-f83d-9fc6-28341591d747", tpldiyfile="viewvotewx.tpl", page=i) r = requests.post(u'http://m138082.nofollow.ax.mvote.cn/op.php', data=listPayload) item = r.json() voteList = [] voteList.extend(item[u'retinfo'][u'list'][u'left']) voteList.extend(item[u'retinfo'][u'list'][u'right']) for user in voteList: allList.append(user[u'pageurl']) print allList