Code Monkey home page Code Monkey logo

Comments (8)

JimmyLaurent avatar JimmyLaurent commented on August 15, 2024

I can't test since I don't have an account anymore.
Can you try replacing /take_login.php with /do-login.php in iptorrents.json please ?

from torrent-search-api.

sgianelli avatar sgianelli commented on August 15, 2024

It looks like its the same issue -- whatever service they use (something like cloudfare) makes you wait 5 seconds before redirecting you to prevent bots it seems. Not sure if there is going to be an easy way around that. You may be able to repro, or at least see what I'm seeing by navigating to iptorrents in incognito or on a VPN without logging in.

from torrent-search-api.

JimmyLaurent avatar JimmyLaurent commented on August 15, 2024

It's a cloudfare protection and it's a pain in the ass.. We have the same problem on yggtorrent provider.
There's a workaround that uses puppeteer, it's not perfect (heavy and will not work on some dockerized env), but it does the job until we have a better solution.
Check this issue if you're interested.

from torrent-search-api.

unixfox avatar unixfox commented on August 15, 2024

Sorry for the off-topic.
@JimmyLaurent which dockerized environment are you referring to? Is it when docker requires to run it as a non-root user?

from torrent-search-api.

JimmyLaurent avatar JimmyLaurent commented on August 15, 2024

It's been a while now and It may have changed but I remember having some troubles running chrome inside Heroku or Now services (with free plans).

BTW, good job with the puppeteer solution.

from torrent-search-api.

unixfox avatar unixfox commented on August 15, 2024

@JimmyLaurent I was right, Heroku doesn't allow running Docker as root so that's why it doesn't work and for vercel it's planned: unixfox/pupflare#3

from torrent-search-api.

JimmyLaurent avatar JimmyLaurent commented on August 15, 2024

@unixfox Still off topic: you might be interested by this buildpack, I made some tests and ran puppeteer flawlessly on heroku.

@sgianelli I added a new experimental cloudflare bypass. It's like pupflare, but only use puppetteer to grab cookies. So if it doesn't bother you to use chromium headless, you might be interested.
To use it, take the latest version of" torrent-search-api" and also add the "cloudflare-scraper" package to you project dependencies.
If you do so, can you tell me if it solve your issue ?
Thanks.

from torrent-search-api.

97WaterPolo avatar 97WaterPolo commented on August 15, 2024

@JimmyLaurent

Hiya! I'm running into the same issue as @sgianelli with IPtorrents
"cloudscraper": "^4.6.0",
"torrent-search-api": "^2.1.3",
with the above versions for the two packages and the default iptorrents.json. Still failing to get through the authentication. Any other tips or suggestions?

from torrent-search-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.