Ramazan
Regular Member
- Aug 19, 2018
- 433
- 308
Trying to auto post this website but something wrong I can get response 200 but comment is not going..
Python:
import requests
headers = {
'authority': 'lucian.uchicago.edu',
'method': 'POST',
'path': '/blogs/atomicage/wp-comments-post.php' ,
'scheme': 'https',
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'tr-TR, trq = 0.9, en-USq = 0.8, enq = 0.7',
'cache-control': 'max-age = 0',
'content-type': 'application/x-www-form-urlencoded',
'origin': 'https://lucian.uchicago.edu',
'referer': 'https://lucian.uchicago.edu/blogs/atomicage/2017/05/29/us-nuclear-disaster-could-be-worse-than-fukushima-experts-warn-via-news-wire/comment-page-57/',
'sec-ch-ua': '" Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"',
'sec-ch-ua-mobile': '?0',
'sec-fetch-dest': 'document',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'same-origin',
'sec-fetch-user': '?1',
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.106 Safari/537.36'
}
PARAMS = {
'c89d734f3a': 'Contentdemo',
'author': 'authorthing',
'email': '[email protected]',
'url': 'demo.com',
'submit': 'Post comment'
}
response = requests.post(
'https://lucian.uchicago.edu/blogs/atomicage/2017/05/29/us-nuclear-disaster-could-be-worse-than-fukushima-experts-warn-via-news-wire/comment-page-57/', headers=headers, params=PARAMS)
print(response)