Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import requests
- import time
- import os
- import random
- url = 'https://2ch.hk/makaba/posting.fcgi'
- data = {
- 'task': 'post',
- 'board': 'asylum',
- 'thread': '491738',
- 'email': '',
- 'name': '',
- 'subject': '',
- 'comment': 'test pikchi',
- }
- pack = 'D:/pics/'
- for i in range(3):
- filename = random.choice(os.listdir(pack))
- filepath = os.path.join(pack, filename)
- files = {'image1': open(filepath, 'rb').read()}
- requests.post(url, params=data, files=files)
- time.sleep(20)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement