Advertisement
Guest User

Untitled

a guest
Feb 8th, 2016
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.42 KB | None | 0 0
  1. import requests
  2. import time
  3.  
  4. url = 'https://2ch.hk/makaba/posting.fcgi'
  5. data = {
  6. 'task': 'post',
  7. 'board': 'asylum',
  8. 'thread': '480443',
  9. 'email': '',
  10. 'name': '',
  11. 'subject': '',
  12. 'comment': 'test pikchi',
  13. }
  14. imagedata = open('D:/1.jpg', 'rb').read()
  15. files = {'image1': imagedata}
  16.  
  17. for i in range(3):
  18.     requests.post(url, params=data,  files=files)
  19.     time.sleep(20)
  20.    
  21. #requests.post(url, params=data, files=files)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement