Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloudFlare Issue #82

Open
zakaoai opened this issue Jan 17, 2021 · 10 comments
Open

CloudFlare Issue #82

zakaoai opened this issue Jan 17, 2021 · 10 comments

Comments

@zakaoai
Copy link

zakaoai commented Jan 17, 2021

Hello there, I dont know why but I bump into cloudflare ban IP from path of exile.
Is there a way to dont get this ban ?

@zakaoai
Copy link
Author

zakaoai commented Jan 18, 2021

Okey fixed the V3 python script using cloudscraper. Will submit a PR when I will have time

@Mettwurstler
Copy link

hey, i wrote the V3 script and I recognised the problem too, but dont have much time atm for fixing.. can you give me your solution, then I will integrate it in my actual version and update it :)

@zakaoai
Copy link
Author

zakaoai commented Jan 20, 2021

import cloudscraper

            scraper = cloudscraper.create_scraper()
            a = scraper.get(stash_tab, cookies=dict(
                POESESSID=POESESSID), params=payload)

@Mettwurstler
Copy link

nice, I will try it, ty :)

@Mettwurstler
Copy link

it works great, ty for your help :) I will upload the newest version on my fork :)

@Mettwurstler
Copy link

tried converting to .exe, but pyinstaller doesn't seems to like cloudscraper :/ the .py file works fine in pycharm. the .exe is running too, but dont read the api :( i will try to fix this, but no clue atm xD

@zakaoai
Copy link
Author

zakaoai commented Jan 20, 2021

Same, I run the .py file. I didn't try convert to .exe atm. Hope you'll find it someday.
Also the imported V3 file has a lot of TODO. First time I code in Python so I don't rush onto them but maybe later I'll help.
Seem like highlight box have some lag when they appear. Maybe some optimization to do on this.

@Mettwurstler
Copy link

I hope too :D yes it was my first touch with python ever, so its far away from perfect i think xD I never had lag problems with the highlights, but I will check this :) but when it runs at least as .py its fine in the first step :)

@Mettwurstler
Copy link

hey, I finally got it. I used cfscrape instead of cloudscraper and everything worked fine. I uploaded the .exe (and rest) on my fork :)

@zakaoai
Copy link
Author

zakaoai commented Jan 21, 2021

Push them when you're done ;) I hesitate between both cfscrape and cloudscraper. Well if they both work with cloudfare that's good. I will continue with the .py for my usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants