Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



 1972

i can just not get this request to work!!!!!!!!!!!!!

by Zentred - 31 October, 2021 - 10:56 PM
This post is by a banned member (Atomical) - Unhide
Atomical  
Godlike
439
Posts
102
Threads
4 Years of service
#9
Here’s something I found out a while ago:

You can pip install uncurl

Then create a python file, name it whatever you want.

Go to the documentation: https://github.com/spulec/uncurl/blob/master/README.md

Go to network tab right click and copy cURL (not sure which one it was)

Paste it into string var

Run the script and boom you have a working request for almost every website.
This post is by a banned member (Zentred) - Unhide
Zentred  
Infinity
617
Posts
124
Threads
4 Years of service
#10
(01 November, 2021 - 04:19 PM)ZeroTolerance Wrote: Show More
It's just the headers
 
Code:
 
import requests
req = requests.Session()

a = req.get('https://atelier801.com/login').text

token_name = a.split('<input type="hidden" name="')[5].split('"')[0]
token = a.split(f'{token_name}" value="')[1].split('"')[0]

headers1 = {
    'Accept-Language': 'en-US,en;q=0.9',
    'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8',
    'Referer': 'https://atelier801.com/login',
    }

data = {
    'rester_connecte': 'on',
    'id': '[email protected]',
    'pass': 'MXa8K4dGJi2BDzfWRnM1/SjTatlPDCfW2T+IQf/8Srg=',
    'redirect': 'https://atelier801.com/index',
    f'{token_name}': token
    }
print(data)
r = req.post('https://atelier801.com/identification', headers=headers1, data=data)
print(r.text)

ty, this resolves so much issues cuz i try making checker alot of sites and i put the headers all of them every time and its not workl
thx sir

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 2 Guest(s)