Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from requests import *
- import urllib2
- for id in range(500,0,-1):
- temp = urllib2.urlopen("http://www.thuchienuocmo.vn/vi/xem-video/353/NGUYEN-THI-MAI-ANH.html")
- data = temp.read()
- data.find('td_number_of_like">')
- i=1
- number = ''
- while ord(data[i]) != 0:
- if ord(data[i]) == 60:
- break
- number = number + data[data.find('td_number_of_like">')+i+len('td_number_of_like">')-1]
- i = i + 1
- number = int(number)
- if number >= 190:
- break
- data = {"ProfileID":str(id),"ContentID":"353","IP":"27.74.22.66","Point":"1"}
- r = post('http://thuchienuocmo.vn/api/api/ContentVote/frontContentVoteCreate', data=data)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement