jQwotos / 9anime-Scraper

Scrapes 9anime.to for download links of episodes
14 stars 7 forks source link

JSON Decode Error #11

Open darekj28 opened 7 years ago

darekj28 commented 7 years ago

Traceback (most recent call last): File "run.py", line 2, in anime9.download('https://9anime.to/watch/sword-art-online.5y9/m2932p') File "/Users/Darek/Dropbox/Anime/9anime/anime9.py", line 212, in download directLink = get_mp4(episode['id'])[-1]['file'] File "/Users/Darek/Dropbox/Anime/9anime/anime9.py", line 84, in get_mp4 details = requests.get(constants.INFO_API, params=payload, headers=headers, cookies = cookies).json() File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/requests/models.py", line 886, in json return complexjson.loads(self.text, **kwargs) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/simplejson/init.py", line 516, in loads return _default_decoder.decode(s) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/simplejson/decoder.py", line 374, in decode obj, end = self.raw_decode(s) File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/simplejson/decoder.py", line 404, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.scanner.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Try decoding the content to UTF, but also got that it was invalid. Edited the code to get more info about the get request on line 84 and got this

content : b'\x01@\x00\x00 -\xa2\xb3\xd77%\x99d\x93\xb2\xb8\xc6-\xa9\xdc\x00\x03' text : @ -���7%�d����-��

Tried converting content to UTF, but another decode error. Am I doing something wrong?

Yureien commented 7 years ago

Hey, 9anime has done some anti bot things. Please wait till the code is updated.

Yureien commented 7 years ago

This repo is moved here: anime_scrapers. Please use it instead.

Yureien commented 6 years ago

Cool! will check it.

On Oct 31, 2017 01:06, "DeathSec" notifications@github.com wrote:

@FadedCoder https://github.com/fadedcoder I Cracked 9Anime's Anti Bot and made a complete app , just in the edge to get released. its written in c++ with Qt5. Take a look if you want , I exploited 9Animes InSecure XHR and got the direct links on the fly , if you are using Linux with KDE then you can compile the app and start downloading actual anime's with ease !

  • it automatically resumes downloads
  • runs in system tray
  • and the best part you can watch as it gets downloaded , just like buffering but stores in disk.
  • Queueing supported

Currently I am cleaning up my code base and making my gui more attractive.

https://github.com/deathsec/9anime/tree/develop

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jQwotos/9anime-Scraper/issues/11#issuecomment-340559627, or mute the thread https://github.com/notifications/unsubscribe-auth/AQjZIfIvuYUhxII0KRjUhvrGCCt0fDkOks5sxiUqgaJpZM4N5Kai .