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

list index out of range #35

Closed
Franc-ctrl opened this issue Oct 5, 2020 · 6 comments
Closed

list index out of range #35

Franc-ctrl opened this issue Oct 5, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@Franc-ctrl
Copy link

Got this one:

Traceback (most recent call last):
File "hunt.py", line 97, in
data = ytb.get_channels(client, name, cfg)
File "/home/osint/GHunt/lib/youtube.py", line 64, in get_channels
from_youtube = youtube_channel_search(client, query)
File "/home/osint/GHunt/lib/youtube.py", line 15, in youtube_channel_search
data = json.loads(source.split('window["ytInitialData"] = ')[1].split('window["ytInitialPlayerResponse"]')[0].split(';\n')[0])
IndexError: list index out of range

could you fix it?

@Franc-ctrl
Copy link
Author

and also:

Traceback (most recent call last):
File "hunt.py", line 101, in
confidence, channels = ytb.get_confidence(data, name, hash)
TypeError: cannot unpack non-iterable NoneType object

@mxrch mxrch added the bug Something isn't working label Oct 5, 2020
@mxrch
Copy link
Owner

mxrch commented Oct 5, 2020

Hello @Franc-ctrl , thanks for reporting this, I'll take a look.
It is not required but if you can send me the email you are trying with it would help the debug, I understand if you won't.

@ItsIgnacioPortal
Copy link
Contributor

ItsIgnacioPortal commented Oct 5, 2020

Correct me if I'm wrong, but I think this is exactly what @0xadam is trying to fix on PR #32

@mxrch
Copy link
Owner

mxrch commented Oct 5, 2020

@Franc-ctrl I pushed a fix for another issue but I think it will solve your issue too, can you confirm ? 910bcb2

@mxrch
Copy link
Owner

mxrch commented Oct 7, 2020

No response since 2 days, I'm closing this issue.
@Franc-ctrl I let you re-opening this issue if needed.

@mxrch mxrch closed this as completed Oct 7, 2020
@Franc-ctrl
Copy link
Author

Works fine now!!! :D :D :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants