Giter Club home page Giter Club logo

fetcher's Introduction

Hello

  • I am a B.Tech final year student.
  • I love automation and can code with C++, Python, Go and JavaScript for now.
  • I am interested in applied ML and Computer vision.
  • Check out my projects.

GitHub stats

fetcher's People

Contributors

bunnykek avatar mexsana avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

fetcher's Issues

The system cannot find the file specified

Downloading the video...
Traceback (most recent call last):
File "C:\Users\jason\Apple-Music-Animated-Artwork-Fetcher\fetcher.py", line 325, in
fetch.album(id_, country, artwork_type, rep, aud)
File "C:\Users\jason\Apple-Music-Animated-Artwork-Fetcher\fetcher.py", line 68, in album
self.processVideo(m3u8_, rep)
File "C:\Users\jason\Apple-Music-Animated-Artwork-Fetcher\fetcher.py", line 167, in processVideo
subprocess.Popen(['ffmpeg', '-loglevel', 'quiet',
File "C:\Users\jason\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Users\jason\AppData\Local\Programs\Python\Python311\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified

Requirments not installing...

I wanted to know what is happening and why i have this error

pip : El término 'pip' no se reconoce como nombre de un cmdlet, función, archivo de script o programa ejecutable.
Compruebe si escribió correctamente el nombre o, si incluyó una ruta de acceso, compruebe que dicha ruta es correcta e
inténtelo de nuevo.
En línea: 1 Carácter: 1

  • pip install -r requirements.txt
  •   + CategoryInfo          : ObjectNotFound: (pip:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    
    
    
    

(Sorry i have the computer in spanish)

Download artist images

Could you please add the function of batch downloading artist images based on the provided artist names? Download one image per artist.

not working:(

Hi I'm new here, i don't know this stuff but i'm getting this error

Checking if the static token is still alive...
Token expired!
Updating the token...
Token updated!
+----+------------+------------+-------+-------+
| ID | Resolution | Bitrate | Codec | FPS |
+----+------------+------------+-------+-------+
| 1 | 664x886 | 1.97 Mb/s | hvc1 | 29.97 |
| 2 | 310x414 | 0.27 Mb/s | avc1 | 29.97 |
| 3 | 352x470 | 0.38 Mb/s | avc1 | 29.97 |
| 4 | 394x526 | 0.53 Mb/s | avc1 | 29.97 |
| 5 | 436x582 | 0.8 Mb/s | avc1 | 29.97 |
| 7 | 486x648 | 1.65 Mb/s | avc1 | 29.97 |
| 8 | 830x1106 | 3.07 Mb/s | avc1 | 29.97 |
| 9 | 830x1108 | 4.24 Mb/s | avc1 | 29.97 |
| 12 | 1078x1438 | 6.78 Mb/s | avc1 | 29.97 |
| 13 | 1080x1440 | 9.76 Mb/s | avc1 | 29.97 |
| 14 | 310x414 | 0.33 Mb/s | hvc1 | 29.97 |
| 15 | 394x526 | 0.53 Mb/s | hvc1 | 29.97 |
| 16 | 436x582 | 0.75 Mb/s | hvc1 | 29.97 |
| 18 | 486x648 | 1.4 Mb/s | hvc1 | 29.97 |
| 19 | 830x1106 | 2.66 Mb/s | hvc1 | 29.97 |
| 20 | 830x1108 | 3.35 Mb/s | hvc1 | 29.97 |
| 23 | 1078x1438 | 6.06 Mb/s | hvc1 | 29.97 |
| 24 | 1080x1440 | 8.49 Mb/s | hvc1 | 29.97 |
| 25 | 1662x2216 | 14.9 Mb/s | hvc1 | 29.97 |
| 28 | 2048x2732 | 25.46 Mb/s | hvc1 | 29.97 |
+----+------------+------------+-------+-------+
Enter the ID: 9

Downloading the video...
Traceback (most recent call last):
File "/Users/larmarisssx/Desktop/Apple-Music-Animated-Artwork-Fetcher/fetcher.py", line 325, in
fetch.album(id_, country, artwork_type, rep, aud)
File "/Users/larmarisssx/Desktop/Apple-Music-Animated-Artwork-Fetcher/fetcher.py", line 68, in album
self.processVideo(m3u8_, rep)
File "/Users/larmarisssx/Desktop/Apple-Music-Animated-Artwork-Fetcher/fetcher.py", line 167, in processVideo
subprocess.Popen(['ffmpeg', '-loglevel', 'quiet',
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/subprocess.py", line 1950, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'

SyntaxError: invalid syntax

I'm on 10.14.6 and I'm getting an error on the final step.
This is what I'm getting

File "fetcher.py", line 38
def init(self) -> None:
^
SyntaxError: invalid syntax

Downloading Animated Artistbanner

Heyy, it would be great and helpful if it would be possible to download the animated banner on the top of the Apple Music artist pages. Maybe it's possible some way. I wish you all the best!

Best Regards!

Doesn't work anymore

Traceback (most recent call last):
File "C:\Python310\lib\site-packages\requests\models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Python310\lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
File "C:\Python310\lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Python310\lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\vasil\Documents\GitHub\Apple-Music-Animated-Artwork-Fetcher\fetcher.py", line 325, in
fetch.album(id_, country, artwork_type, rep, aud)
File "C:\Users\vasil\Documents\GitHub\Apple-Music-Animated-Artwork-Fetcher\fetcher.py", line 51, in album
album_json = self.get_json(id_, country, 'album')
File "C:\Users\vasil\Documents\GitHub\Apple-Music-Animated-Artwork-Fetcher\fetcher.py", line 139, in get_json
return response.json()
File "C:\Python310\lib\site-packages\requests\models.py", line 917, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: [Errno Expecting value] : 0

run with error

File "fetcher.py", line 3, in
import colorama
ModuleNotFoundError: No module named 'colorama'

Error regenerating token

Checking if the static token is still alive...
Regenerating a new token.
Traceback (most recent call last):
File "C:\Users\vasil\Documents\GitHub\Apple-Music-Animated-Artwork-Fetcher\fetcher.py", line 165, in
token = get_auth_token()
File "C:\Users\vasil\Documents\GitHub\Apple-Music-Animated-Artwork-Fetcher\fetcher.py", line 42, in get_auth_token
return re.search(r"(eyJhbGc.+?)%22%7D", response.text).group(1)
AttributeError: 'NoneType' object has no attribute 'group'

I don't know if I did this right

Enter the ID: 1

Downloading the video...
Traceback (most recent call last):
File "C:\Users\Jason Kenny\Apple-Music-Animated-Artwork-Fetcher\fetcher.py", line 246, in
stream = ffmpeg.input(m3u8_)
^^^^^^^^^^^^
AttributeError: module 'ffmpeg' has no attribute 'input'

Doesn't work

Traceback (most recent call last):
File "C:\Users\jsnkn\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 971, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jsnkn\AppData\Local\Programs\Python\Python311\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jsnkn\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jsnkn\AppData\Local\Programs\Python\Python311\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\jsnkn\Apple-Music-Animated-Artwork-Fetcher\fetcher.py", line 325, in
fetch.album(id_, country, artwork_type, rep, aud)
File "C:\Users\jsnkn\Apple-Music-Animated-Artwork-Fetcher\fetcher.py", line 51, in album
album_json = self.get_json(id_, country, 'album')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\jsnkn\Apple-Music-Animated-Artwork-Fetcher\fetcher.py", line 139, in get_json
return response.json()
^^^^^^^^^^^^^^^
File "C:\Users\jsnkn\AppData\Local\Programs\Python\Python311\Lib\site-packages\requests\models.py", line 975, in json
raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)
requests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Not Downloading

Hello I'm new, i don't know this stuff but i'm getting this error

Traceback (most recent call last):
File "C:\Users\Admin\Apple-Music-Animated-Artwork-Fetcher\fetcher.py", line 325, in
fetch.album(id_, country, artwork_type, rep, aud)
File "C:\Users\Admin\Apple-Music-Animated-Artwork-Fetcher\fetcher.py", line 68, in album
self.processVideo(m3u8_, rep)
File "C:\Users\Admin\Apple-Music-Animated-Artwork-Fetcher\fetcher.py", line 167, in processVideo
subprocess.Popen(['ffmpeg', '-loglevel', 'quiet',
File "D:\Program Files\Python311\Lib\subprocess.py", line 1024, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "D:\Program Files\Python311\Lib\subprocess.py", line 1493, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified

failing after music is downloaded

Not sure what to do here but i had an issue before with ffmpeg, i fixed it by putting the executable in /usr/bin
on fedora linux with KDE desktop

[kason@fedora Apple-Music-Animated-Artwork-Fetcher]$ python3 fetcher.py -T tall -L 2 -A https://music.apple.com/us/album/planet-her-deluxe/1574004234

             /$$$$$$$$          /$$               /$$                          
            | $$_____/         | $$              | $$                          
            | $$     /$$$$$$  /$$$$$$    /$$$$$$$| $$$$$$$   /$$$$$$   /$$$$$$ 
            | $$$$$ /$$__  $$|_  $$_/   /$$_____/| $$__  $$ /$$__  $$ /$$__  $$
            | $$__/| $$$$$$$$  | $$    | $$      | $$  \ $$| $$$$$$$$| $$  \__/
            | $$   | $$_____/  | $$ /$$| $$      | $$  | $$| $$_____/| $$      
            | $$   |  $$$$$$$  |  $$$$/|  $$$$$$$| $$  | $$|  $$$$$$$| $$      
            |__/    \_______/   \___/   \_______/|__/  |__/ \_______/|__/      
                    Apple-Music animated cover artwork downloader                      
                                                                -- by bunny  
    
Checking if the static token is still alive...
Token expired!
Updating the token...
Token updated!
+----+------------+------------+-------+------+
| ID | Resolution |  Bitrate   | Codec | FPS  |
+----+------------+------------+-------+------+
| 1  |  664x886   | 1.98 Mb/s  |  hvc1 | 24.0 |
| 2  |  310x414   |  0.3 Mb/s  |  avc1 | 24.0 |
| 3  |  352x470   | 0.43 Mb/s  |  avc1 | 24.0 |
| 4  |  394x526   | 0.62 Mb/s  |  avc1 | 24.0 |
| 5  |  436x582   | 0.95 Mb/s  |  avc1 | 24.0 |
| 7  |  486x648   | 1.91 Mb/s  |  avc1 | 24.0 |
| 8  |  830x1106  | 3.53 Mb/s  |  avc1 | 24.0 |
| 9  |  830x1108  | 4.62 Mb/s  |  avc1 | 24.0 |
| 12 | 1078x1438  |  8.0 Mb/s  |  avc1 | 24.0 |
| 13 |  310x414   | 0.31 Mb/s  |  hvc1 | 24.0 |
| 14 |  394x526   | 0.53 Mb/s  |  hvc1 | 24.0 |
| 15 |  436x582   | 0.77 Mb/s  |  hvc1 | 24.0 |
| 17 |  486x648   | 1.47 Mb/s  |  hvc1 | 24.0 |
| 18 |  830x1106  | 2.77 Mb/s  |  hvc1 | 24.0 |
| 19 |  830x1108  | 3.64 Mb/s  |  hvc1 | 24.0 |
| 22 | 1078x1438  | 6.05 Mb/s  |  hvc1 | 24.0 |
| 23 | 1080x1440  | 8.56 Mb/s  |  hvc1 | 24.0 |
| 24 | 1662x2216  | 14.39 Mb/s |  hvc1 | 24.0 |
| 27 | 2048x2732  | 23.29 Mb/s |  hvc1 | 24.0 |
+----+------------+------------+-------+------+
Enter the ID: 4

Downloading the video...
Video downloaded.

Audio tracks:
+-----------+----------------------------------------+
| Track No. | Name                                   |
+-----------+----------------------------------------+
|     1     | Woman                                  |
|     2     | Naked                                  |
|     3     | Payday (feat. Young Thug)              |
|     4     | Get Into It (Yuh)                      |
|     5     | Need To Know                           |
|     6     | I Don't Do Drugs (feat. Ariana Grande) |
|     7     | Love To Dream                          |
|     8     | You Right                              |
|     9     | Been Like This                         |
|     10    | Options (feat. JID)                    |
|     11    | Ain't Shit                             |
|     12    | Imagine                                |
|     13    | Alone                                  |
|     14    | Kiss Me More (feat. SZA)               |
|     15    | You Right (Extended)                   |
|     16    | Up And Down                            |
|     17    | Tonight (feat. Eve)                    |
|     18    | Ride                                   |
|     19    | Why Why (feat. Gunna)                  |
+-----------+----------------------------------------+

Select the audio track number : 14

Downloading the audio...
Audio downloaded.

Multiplexing...
Done.
Traceback (most recent call last):
  File "/home/kason/Apple-Music-Animated-Artwork-Fetcher/fetcher.py", line 325, in <module>
    fetch.album(id_, country, artwork_type, rep, aud)
  File "/home/kason/Apple-Music-Animated-Artwork-Fetcher/fetcher.py", line 72, in album
    os.remove("fixed.mp4")
FileNotFoundError: [Errno 2] No such file or directory: 'fixed.mp4'
[kason@fedora Apple-Music-Animated-Artwork-Fetcher]$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.