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

Invalid Course URL #33

Closed
n08976 opened this issue Sep 23, 2020 · 20 comments
Closed

Invalid Course URL #33

n08976 opened this issue Sep 23, 2020 · 20 comments

Comments

@n08976
Copy link

n08976 commented Sep 23, 2020

I am getting an error invalid course url for the valid url.
I have a key file in the gb-dl directory, enter my email and pass correctly.
Can you help?

@barakagb
Copy link
Owner

Hi @n08976 , kindly upgrade gb-dl using pip install gb-dl -U and try again.

Thanks

@n08976
Copy link
Author

n08976 commented Sep 23, 2020

Ok the upgrade worked.
Fails elsewhere with

Collecting course information ...
[-] Error : 'NoneType' object has no attribute 'find'

Also, how can I change the download location?

@n08976
Copy link
Author

n08976 commented Sep 23, 2020

Screen Shot 2020-09-23 at 9 49 29 AM

@barakagb
Copy link
Owner

okay lemme look into that error, I may require you to share cookies via email since I don't have a course there to test , as for the download location simply open gb-dl in the directory you want it to download to.

@n08976
Copy link
Author

n08976 commented Sep 23, 2020

ok whatever you need ... just give me instructions on how to get the proper cookie details as that can vary

@barakagb
Copy link
Owner

barakagb commented Sep 23, 2020 via email

@n08976
Copy link
Author

n08976 commented Sep 23, 2020

sent

@barakagb
Copy link
Owner

barakagb commented Sep 23, 2020 via email

@barakagb
Copy link
Owner

Issue fixed upgrade gb-dl .

Thanks

@n08976
Copy link
Author

n08976 commented Sep 23, 2020

upgrade successful ... error on run

users-iMac:gb-dl-master user$ gb-dl.py
/usr/local/Cellar/pyenv/1.2.20/libexec/pyenv-exec: /Users/user/.pyenv/versions/3.7.3/bin/gb-dl.py: /usr/bin/python^M: bad interpreter: No such file or directory
/usr/local/Cellar/pyenv/1.2.20/libexec/pyenv-exec: line 48: /Users/user/.pyenv/versions/3.7.3/bin/gb-dl.py: Undefined error: 0
users-iMac:gb-dl-master user$

Checking my paths atm

@n08976
Copy link
Author

n08976 commented Sep 23, 2020

looks like theres an invalid character?
/usr/local/Cellar/pyenv/1.2.20/libexec/pyenv-exec: /Users/user/.pyenv/versions/3.7.3/bin/gb-dl.py: /usr/bin/python^M: bad interpreter: No such file or directory

@barakagb
Copy link
Owner

  _____ ____                 _ _
              / ____|  _ \               | | |
             | |  __| |_) |  ______    __| | |
             | | |_ |  _ <  |______|  / _` | |
             | |__| | |_) |          | (_| | |
              \_____|____/            \__,_|_|

                                    Version : v1.6.5.8
                        Author  : BarakaGB
                        Visit   : https://github.com/barakagb/gb-dl
                        Donation: https://www.buymeacoffee.com/barakagb
                        Key url : https://bmc.xyz/l/gbdl

A python based utility to download courses from infosec4tc.teachable.com ,
ehacking.net ,stackskills.com and designerup.co ...etc for personal offline
use.


Usage: gb-dl.py [-h]

Enter course url :

@barakagb
Copy link
Owner

Its working on my side on windows

@n08976
Copy link
Author

n08976 commented Sep 23, 2020

ok fixed that issue with the following:
open gb-dl in vi and ":set fileformat=unix"
then write and quit

now i get an error:
users-iMac:gb-dl-master user$ gb-dl.py
Traceback (most recent call last):
File "/Users/user/.pyenv/versions/3.7.3/bin/gb-dl.py", line 14, in
import cfscraper as scrape
ImportError: No module named cfscraper

cfscraper is installed - ran pip install cfscrape as well as pip install -U cfscrape

any ideas?

@n08976
Copy link
Author

n08976 commented Sep 23, 2020

users-iMac:gb-dl-master user$ gb-dl.py
Traceback (most recent call last):
File "/Users/user/.pyenv/versions/3.7.3/bin/gb-dl.py", line 14, in
import cfscraper as scrape
ImportError: No module named cfscraper

users-iMac:gb-dl-master user$ pip search cfscraper
cfscraper (0.16) - A Python module to bypass Cloudflare's anti-bot page.
INSTALLED: 0.16 (latest)

@n08976
Copy link
Author

n08976 commented Sep 23, 2020

users-iMac:gb-dl-master user$ pip show cfscrape
Name: cfscrape
Version: 2.1.1
Summary: A simple Python module to bypass Cloudflare's anti-bot page. See https://github.com/Anorov/cloudflare-scrape for more information.
Home-page: https://github.com/Anorov/cloudflare-scrape
Author: Anorov
Author-email: anorov.vorona@gmail.com
License: UNKNOWN
Location: /Users/user/.pyenv/versions/3.7.3/lib/python3.7/site-packages
Requires: requests
Required-by:

users-iMac:gb-dl-master user$ pip show cfscraper
Name: cfscraper
Version: 0.16
Summary: A Python module to bypass Cloudflare's anti-bot page.
Home-page: UNKNOWN
Author: UNKNOWN
Author-email: UNKNOWN
License: UNKNOWN
Location: /Users/user/.pyenv/versions/3.7.3/lib/python3.7/site-packages
Requires: requests, requests-toolbelt, pyparsing
Required-by: gb-dl

@n08976
Copy link
Author

n08976 commented Sep 23, 2020

Multiple attempts at reinstalling cfscrape and cfsraper - no luck.

users-iMac:gb-dl-master user$ pip install --upgrade --no-deps --force-reinstall cfscrape
Collecting cfscrape
Using cached cfscrape-2.1.1-py3-none-any.whl (12 kB)
Installing collected packages: cfscrape
Attempting uninstall: cfscrape
Found existing installation: cfscrape 2.1.1
Uninstalling cfscrape-2.1.1:
Successfully uninstalled cfscrape-2.1.1
Successfully installed cfscrape-2.1.1

users-iMac:gb-dl-master user$ pip install --upgrade --no-deps --force-reinstall cfscraper
Collecting cfscraper
Using cached cfscraper-0.16.tar.gz (94 kB)
Using legacy 'setup.py install' for cfscraper, since package 'wheel' is not installed.
Installing collected packages: cfscraper
Attempting uninstall: cfscraper
Found existing installation: cfscraper 0.16
Uninstalling cfscraper-0.16:
Successfully uninstalled cfscraper-0.16
Running setup.py install for cfscraper ... done
Successfully installed cfscraper-0.16

users-iMac:gb-dl-master user$ gb-dl.py
Traceback (most recent call last):
File "/Users/user/.pyenv/versions/3.7.3/bin/gb-dl.py", line 14, in
import cfscraper as scrape
ImportError: No module named cfscraper

@barakagb
Copy link
Owner

barakagb commented Sep 24, 2020 via email

@barakagb
Copy link
Owner

Try upgrading to v1.6.5.9 I compiled in linux (It seems compiling in windows is an issue)]

Thanks.

@n08976
Copy link
Author

n08976 commented Sep 24, 2020

Great ... i see you are up to 1.6.6

Seems to be working!

Downloading to :/Users/user/Downloads/gb-dl-master
Collecting course information ...
Course name : Cxxx : High School Edition
Getting course sections ...
Downloading course image ...

[+] Found Section : THE Cxxx Gxxx (ORIGINAL VIDEO SERIES)

Preparing lecture 1 of 39 download ...
Starting download ...
[Wistia] m9icn9oasl: Downloading JSON metadata
[download] Destination: Module 1.m4v-m9icn9oasl.bin
[download] 18.3% of 337.37MiB at 4.08MiB/s ETA 01:07

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