(13 January, 2022 - 08:08 PM)Iwannaexplode Wrote: Show More
(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')
hello mate, once opened how do we put one by one in 'proxy = {"http" : "https://......"}' changing each time proxy?
(13 January, 2022 - 08:08 PM)Iwannaexplode Wrote: Show More
(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')
what reason is there to use tkinter?
if they want to use their own file they can use input
filename = input('Enter file name: ')
proxies = open(f'{filename}.txt', 'r').read().splitlines()
proxies = [{'https':'http://'+proxy} for proxy in proxies]
(31 January, 2022 - 02:57 PM)Zentred Wrote: Show More
(13 January, 2022 - 08:08 PM)Iwannaexplode Wrote: Show More
(13 January, 2022 - 05:32 PM)Apostorial Wrote: Show More
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
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')
what reason is there to use tkinter?
if they want to use their own file they can use input
filename = input('Enter file name: ')
proxies = open(f'{filename}.txt', 'r').read().splitlines()
proxies = [{'https':'http://'+proxy} for proxy in proxies]
That's the point, I don't want that, I want user to import their own files so Tkinter is the way
(31 January, 2022 - 02:57 PM)Zentred Wrote: Show More
(13 January, 2022 - 08:08 PM)Iwannaexplode Wrote: Show More
(13 January, 2022 - 05:32 PM)Apostorial Wrote: Show More
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
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')
what reason is there to use tkinter?
if they want to use their own file they can use input
filename = input('Enter file name: ')
proxies = open(f'{filename}.txt', 'r').read().splitlines()
proxies = [{'https':'http://'+proxy} for proxy in proxies]
(31 January, 2022 - 02:57 PM)Zentred Wrote: Show More
(13 January, 2022 - 08:08 PM)Iwannaexplode Wrote: Show More
(13 January, 2022 - 05:32 PM)Apostorial Wrote: Show More
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
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')
what reason is there to use tkinter?
if they want to use their own file they can use input
filename = input('Enter file name: ')
proxies = open(f'{filename}.txt', 'r').read().splitlines()
proxies = [{'https':'http://'+proxy} for proxy in proxies]
tkinter does make the process a lot more user-friendly, doesn't hurt having a little convenience