vinceh121 / socialblade-api

Unofficial SocialBlade api
GNU General Public License v3.0
19 stars 5 forks source link

YouTuber not found #3

Closed AriixIT closed 5 years ago

AriixIT commented 5 years ago

No matter which YouTuber I search, it doesn't find it. Even pewdiepie. oof

vinceh121 commented 5 years ago

Is the login procedure successful? Can you show your code or say what endpoint you are using?

AriixIT commented 5 years ago

I went through the debugger and the login was successful. I'm using the code that you have as an example in the README.md. It fails as it tries to return the JSON.

Vincent notifications@github.com schrieb am Mi., 21. Aug. 2019, 14:20:

Is the login procedure successful? Can you show your code or say what endpoint you are using?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vinceh121/socialblade-api/issues/3?email_source=notifications&email_token=ALWJTB5HTYVK3P5R56YFK6LQFUXIZA5CNFSM4IOFUG72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4ZO5PQ#issuecomment-523431614, or mute the thread https://github.com/notifications/unsubscribe-auth/ALWJTBZ6PMGSM453RNY42GLQFUXIZANCNFSM4IOFUG7Q .

vinceh121 commented 5 years ago

SocialBlade seems to be restricting my API based on the User-Agent now, try to add sb.setUserAgent("Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0") just after the constructor and see if that fixes it

AriixIT commented 5 years ago

The function setUserAgent() doesn't seem to exist.

Am Mi., 21. Aug. 2019 um 15:00 Uhr schrieb Vincent <notifications@github.com

:

SocialBlade seems to be restricting my API based on the User-Agent now, try to add sb.setUserAgent("Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0") just after the constructor and see if that fixes it

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vinceh121/socialblade-api/issues/3?email_source=notifications&email_token=ALWJTBYPJHWQ3LH3OBWWTZLQFU36FA5CNFSM4IOFUG72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4ZSN6Q#issuecomment-523446010, or mute the thread https://github.com/notifications/unsubscribe-auth/ALWJTB7G4VFBITFIZAPANPLQFU36FANCNFSM4IOFUG7Q .

vinceh121 commented 5 years ago

In which case you'll probably need to upgrade to the latest version (0.2.2)

AriixIT commented 5 years ago

Ok yeah, now it works! Thanks!

Am Mi., 21. Aug. 2019 um 15:54 Uhr schrieb Vincent <notifications@github.com

:

In which case you'll probably need to upgrade to the latest version (0.2.2)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vinceh121/socialblade-api/issues/3?email_source=notifications&email_token=ALWJTB6M3S2TDXIR5U35J7DQFVCIFA5CNFSM4IOFUG72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4ZXVQQ#issuecomment-523467458, or mute the thread https://github.com/notifications/unsubscribe-auth/ALWJTB3RHCV5QZ76XZJVDETQFVCIFANCNFSM4IOFUG7Q .

vinceh121 commented 5 years ago

You're welcome!

AriixIT commented 5 years ago

The only thing I noticed, what you might could improve, is that if I search for example for "Ariix", it doesn't work. Probably, because there exist 2 channels with this exact name. At least it returns the NOT FOUND message, but still great work!

Am Mi., 21. Aug. 2019 um 16:07 Uhr schrieb Vincent <notifications@github.com

:

You're welcome!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vinceh121/socialblade-api/issues/3?email_source=notifications&email_token=ALWJTB5I26UIHJS5BKRFC7TQFVD2PA5CNFSM4IOFUG72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4ZZB2I#issuecomment-523473129, or mute the thread https://github.com/notifications/unsubscribe-auth/ALWJTB3S4DHD4FTSSYDP2G3QFVD2PANCNFSM4IOFUG7Q .

vinceh121 commented 5 years ago

There isn't a way I could fix this, that's only managed on SocialBlade's part, but you could pass the channel ID instead

AriixIT commented 5 years ago

Okay, thanks.

Am Mi., 21. Aug. 2019 um 16:40 Uhr schrieb Vincent <notifications@github.com

:

There isn't a way I could fix this, that's only managed on SocialBlade's part, but you could pass the channel ID instead

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/vinceh121/socialblade-api/issues/3?email_source=notifications&email_token=ALWJTBZCJBZ67DKLBIVVZR3QFVHVZA5CNFSM4IOFUG72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD4Z4S6Q#issuecomment-523487610, or mute the thread https://github.com/notifications/unsubscribe-auth/ALWJTB2FMPTZDRKTGKELPADQFVHVZANCNFSM4IOFUG7Q .