Proxy support
Opened this issue · 11 comments
Any chance you can add support for a proxy into this?
I'm not sure you understand what proxies are used for. Using proxies in this case is completely pointless and will lead to your prolific account being placed on hold instantly
Using a proxy does not get the account suspended/put on hold instantly. I've done it for a couple weeks so far.
It is against TOS yes but so is this script.
It means you can still access the surveys away from home. The proxy I use is all done through a chrome extension currently, If I use the script as it is prolific will see my actual IP and then when the script opens the survey it will get the proxy IP. I assume this will raise some red flags so was thinking if I can use a proxy with the script the problem is solved.
id still not recommend using this script or proxies though, here look at this article: https://participant-help.prolific.com/hc/en-gb/articles/14973662049308-PEC-AB-0002-error
The only case where you would need a proxy to access surveys is if you were travelling abroad. From my knowledge, they are extremely high risk on prolific (maybe it's not an instant hold like i previously said, but it certainly will get you flagged as it's incredibly easy for prolific to detect). I don't see why there should be such high-risk functionality on the public version of the script when it's only useful in very rare cases. If it were to be added, the setup process would get even more confusing for inexperienced users and improper setup could even lead to them getting banned from prolific. You should stop using proxies yourself aswell if you care about your account, it's just not worth it (unless you're planning to be abroad for the next few years)
id still not recommend using this script or proxies though, here look at this article: https://participant-help.prolific.com/hc/en-gb/articles/14973662049308-PEC-AB-0002-error
this is not the right error, this is the error you would receive (your account would be placed on hold):
https://participant-help.prolific.com/hc/en-gb/articles/14973655280540-PEC-AB-0003-error
even if you have fresh proxies that are not flagged/blacklisted, they will eventually be and you will be retroactively banned I would say.. if you have private home connections you can use has a proxy go for it..
warning done, to add a basic proxy support:
change from line 87 to 92 with
# Proxy settings
proxy = config['proxy']
print(f"Proxy used: {proxy}")
# Configure Selenium Wire proxy options
proxy_options = {
'http': proxy,
'https': proxy,
'no_proxy': 'localhost,127.0.0.1'
}
# Initialize the Selenium WebDriver with selenium-wire
driver = webdriver.Chrome(
service=ChromeService(ChromeDriverManager().install()),
options=options,
seleniumwire_options={'proxy': proxy_options}
)
print("Driver started")
# IP Check
driver.get("https://httpbin.io/ip")
print(driver.find_element(By.TAG_NAME, "body").text)
sleep(3)
driver.get(pageurl)
add to the config.json anywhere above the last entry (wait_time)
"proxy" : "http://yourserver:yourport",
Didnt really test it more than it succeded in trying to login with dummy credentials. Have fun!
even if you have fresh proxies that are not flagged/blacklisted, they will eventually be and you will be retroactively banned I would say.. if you have private home connections you can use has a proxy go for it..
warning done, to add a basic proxy support: change from line 87 to 92 with
# Proxy settings proxy = config['proxy'] print(f"Proxy used: {proxy}") # Configure Selenium Wire proxy options proxy_options = { 'http': proxy, 'https': proxy, 'no_proxy': 'localhost,127.0.0.1' } # Initialize the Selenium WebDriver with selenium-wire driver = webdriver.Chrome( service=ChromeService(ChromeDriverManager().install()), options=options, seleniumwire_options={'proxy': proxy_options} ) print("Driver started") # IP Check driver.get("https://httpbin.io/ip") print(driver.find_element(By.TAG_NAME, "body").text) sleep(3) driver.get(pageurl)
add to the config.json anywhere above the last entry (wait_time)
"proxy" : "http://yourserver:yourport",
Didnt really test it more than it succeded in trying to login with dummy credentials. Have fun!
Thanks dude, I have got it working.
I might need to look into using my home connection as a proxy, I hadn't thought of that. I'm going to be travelling for a bit hence the need for the proxy and prolific is nice to top up my income
Any chance i can get the site you get your proxies from? I'm in need of some urgently will be travelling soon.
Any chance i can get the site you get your proxies from? I'm in need of some urgently will be travelling soon.
sorry, i dont actually use proxies. I just use VPNs in a contained environment so I can be fully anon even if some study asks me to download something and tries to log my IP from somewhere else that isnt the browser/script or they trying to be sneaky with WebRTC etc etc...
One provider i've used for OTHER projects that offers good proxies (socks5) is vip72 (.pro is the only domain care for scams) (they also provide VPN's but i never tried them).
But if you want to know how I'm doing it, I have access to many PERSONAL computers around the world so I just install a VPN protocol on them and use their home connections for this (and other things..).
--inb4 SJW complaining. They know what i'm doing and have full support from the owners of the internet connections and PCs.
All this said.. be careful.
Always check your proxies/vpn IPs for blacklistings before logging into prolific or starting the script. dont come raging here if you are banned for ip leakage, suspicious behaviour, etc etc.
If you are going to travel for just a couple of weeks maybe its wiser to just dont do it until you come back?
[EDIT]
Re-read your "problem" again. If you are going on vacation for a short time, all you have to do is setup a RDP connection/Teamviewer/Any remote desktop program to your home computer and keep it powered on, then just login and do your prolific stuff through it brother.
Happy survey hunting!
Any chance i can get the site you get your proxies from? I'm in need of some urgently will be travelling soon.
sorry, i dont actually use proxies. I just use VPNs in a contained environment so I can be fully anon even if some study asks me to download something and tries to log my IP from somewhere else that isnt the browser/script or they trying to be sneaky with WebRTC etc etc...
One provider i've used for OTHER projects that offers good proxies (socks5) is vip72 (.pro is the only domain care for scams) (they also provide VPN's but i never tried them). But if you want to know how I'm doing it, I have access to many PERSONAL computers around the world so I just install a VPN protocol on them and use their home connections for this (and other things..).
--inb4 SJW complaining. They know what i'm doing and have full support from the owners of the internet connections and PCs.
All this said.. be careful. Always check your proxies/vpn IPs for blacklistings before logging into prolific or starting the script. dont come raging here if you are banned for ip leakage, suspicious behaviour, etc etc.
If you are going to travel for just a couple of weeks maybe its wiser to just dont do it until you come back?
[EDIT] Re-read your "problem" again. If you are going on vacation for a short time, all you have to do is setup a RDP connection/Teamviewer/Any remote desktop program to your home computer and keep it powered on, then just login and do your prolific stuff through it brother. Happy survey hunting!
Hy, can you please guide me on how to access a device connection using a VPN protocol? I'd be greatful. I have tried many times to setup a VPN protocol using my home computer and use the connection when i travel but i,ve not been able to, thanks.
google or youtube how to setup a openvpn server