Advertisement
jackieradallhazik

quảng lí vote

Feb 26th, 2015
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. from requests import *
  2. import urllib2
  3. for id in range(500,0,-1):
  4. temp = urllib2.urlopen("http://www.thuchienuocmo.vn/vi/xem-video/353/NGUYEN-THI-MAI-ANH.html")
  5. data = temp.read()
  6. data.find('td_number_of_like">')
  7. i=1
  8. number = ''
  9. while ord(data[i]) != 0:
  10. if ord(data[i]) == 60:
  11. break
  12. number = number + data[data.find('td_number_of_like">')+i+len('td_number_of_like">')-1]
  13. i = i + 1
  14. number = int(number)
  15. if number >= 190:
  16. break
  17. data = {"ProfileID":str(id),"ContentID":"353","IP":"27.74.22.66","Point":"1"}
  18. r = post('http://thuchienuocmo.vn/api/api/ContentVote/frontContentVoteCreate', data=data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement