Giter Club home page Giter Club logo

Comments (7)

otongS avatar otongS commented on May 27, 2024 1

yep sorry forgot to reply back, all set :)

from p_pl_dl.

ppldl avatar ppldl commented on May 27, 2024

I'm not able to reproduce the problem.

If you were in incognito mode, can you try getting cookies using normal mode instead?

Is this the extension you used?
https://chrome.google.com/webstore/detail/get-cookiestxt/bgaddhkoddajcdgocldbbfleckgcbcid

Within the cookies text file it generates, there should be a session_token entry like so:

.xvideos.com TRUE / FALSE 1234567891 session_token 0a1b2c3d4e5f6g7h8i...

from p_pl_dl.

otongS avatar otongS commented on May 27, 2024

Yeah that's the one I used. I didnt use incognito when I try to download the cookie.

Yep it looks like that

image

Hmm cant seem to send file via github. I can send you the cookie txt for you to check, along with the URL to try.

from p_pl_dl.

ppldl avatar ppldl commented on May 27, 2024

How are you passing in cookies? Your cookies file is "xvideos.com_cookies.txt", so the program call should be like:

python p_pl_dl_main.py.py -i "C:\MyFolder\urls.txt" -c "C:\MyCookieFolder\xvideos.com_cookies.txt" -d "F:\DownloadDestination"

It should also print all the cookies files it parses when the program starts. Do you see a message that says it is parsing "xvideos.com_cookies.txt"?

from p_pl_dl.

otongS avatar otongS commented on May 27, 2024

Ah, it's not parsing cookies at all.

C:\Users\Laptop>python D:\p_pl_dl-main\p_pl_dl_main.py -i "D:\p_pl_dl-main\url.txt" -c "D:\p_pl_dl-main\xvideos.com_cookies.txt" -d "D:\p_pl_dl-main\test"
Working download directory: D:\p_pl_dl-main\test
Cookies source: D:\p_pl_dl-main\xvideos.com_cookies.txt
Using the following input source: D:\p_pl_dl-main\url.txt
URL: https://www.xvideos.com/favorite/25818561/bjs
Detected websites:
{
"lewdthots": false,
"pornhub": false,
"porntrex": false,
"spankbang": false,
"xhamster": false,
"xvideos": true,
"youporn": false
}

Running xvideos extractor for https://www.xvideos.com/favorite/25818561/bjs

Initial connection status: 403

Traceback (most recent call last):
File "D:\p_pl_dl-main\p_pl_dl_main.py", line 88, in main
dExtractors[sSite].run(sUrl, sCookieSource=None) # Cookies should already be parsed and available when going through main
File "D:\p_pl_dl-main\p_pl_dl_xv.py", line 21, in run
raise ConnectionError(f"403 Forbidden! Please check if cookies are required! Private videos/playlists cannot be accessed without cookies!")
ConnectionError: 403 Forbidden! Please check if cookies are required! Private videos/playlists cannot be accessed without cookies!

The same if I use powershell. The one above is using command prompt

from p_pl_dl.

ppldl avatar ppldl commented on May 27, 2024

Sorry, I am unable to reproduce this at all. A possible workaround is to make your xvideos playlist public so that a login is not required.

Going back to the cookies, below is what my xvideos cookies file looks like, which has differences compared against yours. The numbers after the TRUE/FALSE columns are all zero in mine, where as you have some number like 1632198587. You also have two extra rows for wpn_ad_cookie and last_subs_check. Last difference is that all of mine are TRUE/FALSE, whereas you have a TRUE/TRUE for your session_token.

Try editing your cookies to resemble mine, or generate them using a different method. I use Firefox with this extension: https://addons.mozilla.org/en-US/firefox/addon/cookies-txt/

image

from p_pl_dl.

ppldl avatar ppldl commented on May 27, 2024

Closing due to lack of activity. Open a new issue if you have more info. :)

from p_pl_dl.

Related Issues (11)

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.