Git Product home page Git Product logo

Comments (4)

barakagb avatar barakagb commented on May 24, 2024

Hi @flatlinebb , kindly note that you only need to extract the value of _session_id from the cookies.(simply copy the value and paste it in txt file then -c FILENAME.txt do not add anything else in the file)
You can use -h for help.

-c will load cookie value from file
-b will store the cookie
-a will autoload the cookie from the stored cookies

so it would make sense to use -c and -b in one command

Thanks.

from gb-dl.

flatlinebb avatar flatlinebb commented on May 24, 2024

Hi,
Thank you so much for your response. I have been trying different variants of adding the value of the _session_id value to the txt file.
From the line (redacted for privacy):
stackskills.com FALSE / TRUE 16xxxxxxx6 _session_id xxxxxxxxxxxxxxxxxxxxxxxxxxcb
I have taken just the value xxxxxxxxxxxxxxxxxxxxxxxxxxcb
and using the command:
gb-dl.py -c cookie.txt -b -a
I get the error:
[-] Error: 'NoneType' object has no attribute 'group'

If I put the whole line in the file, I get the same error. The only time I get no error, but a message that "[-] Cookie authentication failed!" is when I put the whole content of the cookies.txt in the file.

Also, I did look at the -h option and saw the command switches, but since you do not provide a single example of the syntax using these switches anywhere on your github page, I wanted to get confirmation I was using them correctly, and perhaps causing my own issues with authentication.

I appreciate your continued assistance with your script.

from gb-dl.

flatlinebb avatar flatlinebb commented on May 24, 2024

Well, I have figured out the problem, by searching around the Internet for how programs expect the cookie info to look and found the correct syntax of the cookie.txt file.
It should contain the single line as follows: (again, redacted for privacy)
_session_id=bxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxb
Your explanation suggested that only the part after the equal sign was needed, not even mentioning the fact that the equal sign was needed there at all.

I have another question now, regarding the naming format of the downloaded course files. I know what you are using youtube-dl in your script, and that it is capable of naming the video files with a certain scheme. The files that are downlaoded with your script, while nicely organized into a folder with the course name, and subfolders names with sub-sections, the files themselves are very generic.
For example: WebHD_720p.mp4-1osdfafdsf9d.mp4

Is there a way to control that? Can I edit some config file and set my own pattern for the file name? For example, the following pattern works nicely and makes the individual course videos clearly labeled:
Course Name/%(chapter_number)s-%(chapter)s/%(autonumber)03d-%(title)s.%(ext)s
Resulting in a file named like this:
012-Basic Cookie Baking (Part 1).mp4

As always, all help is greatly appreciated.

from gb-dl.

barakagb avatar barakagb commented on May 24, 2024

I am glad you made it work :) .However the way the script accepts the cookie is only by the cookie value suggesting it worked different for you is something that I have to look into . Kindly share the screenshot of the errors and the course url so I can look into it b'cause it sounds weird to me.

The course file names differ from one course to another ...some courses will have well labeled filenames while other will have generic names like so. For it is not possible to to set your own pattern but I understand the importance of it and will add it in a future release.

Thanks

from gb-dl.

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.