Comments (4)
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.
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.
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.
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)
- No key after purchase HOT 2
- Invalid course URL for https://learndataengineering.com/courses HOT 1
- Invalid course URL error for "https://serpentine-studies.teachable.com/courses" HOT 3
- Invalid course URL error for "https://navadance.teachable.com/courses" HOT 4
- Usage HOT 21
- Could not contact remote server HOT 2
- No key after purchase HOT 3
- 503 Service Unavailable HOT 3
- Invalid Course URL For https://growyouragency.teachable.com/courses/enrolled/632756 HOT 8
- Can not download courses that have '/' in the course name HOT 21
- [-] Invalid course URL. HOT 4
- Invalid course URL HOT 8
- [-] Error: [Errno 2] No such file or directory: 'C:\\Users\\______\\.gb_dl\\recovery.jsonlz4' HOT 5
- Paid, Didn't get licence HOT 2
- Connection timed out to venvgb.cf HOT 3
- "Enter Cookie Instead" HOT 1
- [-] Invalid course URL. HOT 12
- Error cannot download attachment. Saving URL HOT 2
- Connection
- I can't type in my password HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gb-dl.