So yeah title says it all, I already know the basic and some intermediate stuff of Python, I looked for a bit for tutorials but they don't cover much stuff and the stuff doesn't work
13 January, 2022 - 05:03 PM(This post was last modified: 13 January, 2022 - 05:09 PM by Code. Edited 1 time in total.)
Reply
requests is pretty easy : define your headers in a dict / define your payload/url : (the payload depends on the site, meaning it can be a dict or a string)
if you need to parse some cookies before/after just do a get request to the url where you can get the cookie and parse it by using response.cookies['cookie_needed'] :
same thing if the response is in json : response.json()['key']
To check if a string is in the response you can check it by :
Code:
if 'string_here' in response.text:
....
idk if this is clear but yeah....
then for threading there's multiple methods to implement it. You can test yourself and see which one suits you best.
Idk if this 'guide' was clear since i did it quickly. Hope it helps
OP13 January, 2022 - 05:32 PM(This post was last modified: 13 January, 2022 - 07:35 PM by Apostorial.)
Reply
(13 January, 2022 - 05:03 PM)Iwannaexplode Wrote: Show More
requests is pretty easy : define your headers in a dict / define your payload/url : (the payload depends on the site, meaning it can be a dict or a string)
if you need to parse some cookies before/after just do a get request to the url where you can get the cookie and parse it by using response.cookies['cookie_needed'] :
same thing if the response is in json : response.json()['key']
To check if a string is in the response you can check it by :
Code:
if 'string_here' in response.text:
....
idk if this is clear but yeah....
then for threading there's multiple methods to implement it. You can test yourself and see which one suits you best.
Idk if this 'guide' was clear since i did it quickly. Hope it helps
sheesh man, I have a question. Do you know how can I ask the user the load his own proxies? Like without having a proxies text file with the main.py ya know, he can just load his own. Can do that with the combolist too and the if "string" in response.text doesn't work for me idk why, for example the "incorrect password" string that shows in red when the password is incorrect isn't detected in response.text
(13 January, 2022 - 05:03 PM)Iwannaexplode Wrote: Show More
requests is pretty easy : define your headers in a dict / define your payload/url : (the payload depends on the site, meaning it can be a dict or a string)
if you need to parse some cookies before/after just do a get request to the url where you can get the cookie and parse it by using response.cookies['cookie_needed'] :
same thing if the response is in json : response.json()['key']
To check if a string is in the response you can check it by :
Code:
if 'string_here' in response.text:
....
idk if this is clear but yeah....
then for threading there's multiple methods to implement it. You can test yourself and see which one suits you best.
Idk if this 'guide' was clear since i did it quickly. Hope it helps
(13 January, 2022 - 05:32 PM)Apostorial Wrote: Show More
(13 January, 2022 - 05:03 PM)Iwannaexplode Wrote: Show More
requests is pretty easy : define your headers in a dict / define your payload/url : (the payload depends on the site, meaning it can be a dict or a string)
if you need to parse some cookies before/after just do a get request to the url where you can get the cookie and parse it by using response.cookies['cookie_needed'] :
same thing if the response is in json : response.json()['key']
To check if a string is in the response you can check it by :
Code:
if 'string_here' in response.text:
....
idk if this is clear but yeah....
then for threading there's multiple methods to implement it. You can test yourself and see which one suits you best.
Idk if this 'guide' was clear since i did it quickly. Hope it helps
sheesh man, I have a question. Do you know how can I ask the user the load his own proxies? Like without having a proxies text file with the main.py ya know, he can just load his own. Can do that with the combolist too and the if "string" in response.text doesn't work for me idk why, for example the "incorrect password" string that shows in red when the password is incorrect isn't detected in response.text
(13 January, 2022 - 05:03 PM)Iwannaexplode Wrote: Show More
requests is pretty easy : define your headers in a dict / define your payload/url : (the payload depends on the site, meaning it can be a dict or a string)
if you need to parse some cookies before/after just do a get request to the url where you can get the cookie and parse it by using response.cookies['cookie_needed'] :
same thing if the response is in json : response.json()['key']
To check if a string is in the response you can check it by :
Code:
if 'string_here' in response.text:
....
idk if this is clear but yeah....
then for threading there's multiple methods to implement it. You can test yourself and see which one suits you best.
Idk if this 'guide' was clear since i did it quickly. Hope it helps
I figured out the open file part
use tkinter to get the proxies from the user. And for the response check your request because you prolly did something wrong
Tkinter example :
Code:
import tkinter as tk
from tkinter import filedialog
root = tk.Tk()
root.withdraw()
proxies_path = filedialog.askopenfilename(title='Select your proxies')