{"id":22371323,"url":"https://github.com/aliakhtari78/spotifyscraper","last_synced_at":"2025-04-09T13:10:00.789Z","repository":{"id":42027080,"uuid":"259767909","full_name":"AliAkhtari78/SpotifyScraper","owner":"AliAkhtari78","description":"Spotify Scraper to extract all the information from spotify, download mp3 with cover of the song","archived":false,"fork":false,"pushed_at":"2024-06-20T13:19:35.000Z","size":93,"stargazers_count":144,"open_issues_count":11,"forks_count":18,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-09T13:09:55.805Z","etag":null,"topics":["album-title","crawler","free","infromation","preview-mp3","python","python3","scraper","spotfiy","spotify-crawler","spotify-downloader","spotify-scraper","spotify-scraping","spotify-songs","spotify-web-player","webscraper","webscraping"],"latest_commit_sha":null,"homepage":"https://spotifyscraper.readthedocs.io/en/latest","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AliAkhtari78.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-28T22:40:47.000Z","updated_at":"2025-03-27T11:59:20.000Z","dependencies_parsed_at":"2025-01-06T04:11:16.727Z","dependency_job_id":"ee349c5d-bf27-4f83-9a68-ccb0351d7176","html_url":"https://github.com/AliAkhtari78/SpotifyScraper","commit_stats":{"total_commits":44,"total_committers":2,"mean_commits":22.0,"dds":0.2954545454545454,"last_synced_commit":"a0791b432311d13828d645963d67997044098658"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliAkhtari78%2FSpotifyScraper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliAkhtari78%2FSpotifyScraper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliAkhtari78%2FSpotifyScraper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AliAkhtari78%2FSpotifyScraper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AliAkhtari78","download_url":"https://codeload.github.com/AliAkhtari78/SpotifyScraper/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045245,"owners_count":21038554,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["album-title","crawler","free","infromation","preview-mp3","python","python3","scraper","spotfiy","spotify-crawler","spotify-downloader","spotify-scraper","spotify-scraping","spotify-songs","spotify-web-player","webscraper","webscraping"],"created_at":"2024-12-04T20:18:55.153Z","updated_at":"2025-04-09T13:10:00.762Z","avatar_url":"https://github.com/AliAkhtari78.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/AliAkhtari78/SpotifyScraper.svg?branch=master)](https://travis-ci.com/AliAkhtari78/SpotifyScraper)\n[![Documentation Status](https://readthedocs.org/projects/spotifyscraper/badge/?version=latest)](https://spotifyscraper.readthedocs.io/en/latest/?badge=latest)\n# Spotify Scraper\n\n\n##  Overview\nPython **Spotify Web Player Scraper**, a fast high-level Spotify Web Player Scraper, to scrape and extract data from Spotify Web Player with the most efficient and fastest methods.\ninstead of using Selenium, I used [requests](https://github.com/psf/requests) library to increase the speed of scraping.\nYou can set cookies, headers and proxy and download the cover and preview mp3 song of Spotify songs beside the scraping.\n\n## Requirements\n- Python 3.6 +\n- Works on Linux, Windows, macOS, BSD\n- Internet connection\n\n## Installing\nYou can install this package as simple as type a command in your CMD or Terminal.\nThe quick way:\n```sh\n$ pip install -U spotifyscraper\n```\nor\ndo it in the hard way:\n\n``\n$ git clone https://github.com/AliAkhtari78/SpotifyScraper.git \n``\u003cbr\u003e\n ``\n$sudo python setup.py install\n``\n## Documentation\n\nCheck out [Read The Docs](https://spotifyscraper.readthedocs.io/en/latest/) for a more in-depth explanation, with examples, troubleshooting issues, and more useful information.\n## Extract Spotify track information by URL\n- ``\nfrom SpotifyScraper.scraper import Scraper, Request\n``\n\u003e Import SpotifyScraper to use it\n- ``\n request = Request().request()\n``\n\u003e Create requests using Request which was imported before,\n\u003e You can also pass cookie_file, header\tand proxy inside Request().\n\u003e Default is None.\n- ``\nprint(Scraper(session=request).get_track_url_info(url='https://open.spotify.com/track/7wqpAYuSk84f0JeqCIETRV?si=b35Rzak1RgWvBAnbJteHkA'))\n``\n\u003e Call get_track_url_info function from Scraper to extract all the infromation from url.\n\u003e If the given URL is valid, it will return a dict with the below keys:\n\u003e - title\n\u003e - preview_mp3\n\u003e - duration\n\u003e - artist_name\n\u003e - artist_url\n\u003e - album_title\n\u003e - album_cover_url\n\u003e - album_cover_height\n\u003e - album_cover_width\n\u003e - release_date\n\u003e - total_tracks\n\u003e - type_\n\u003e - ERROR\n\n- ``\n$ {\n'title': 'The Future Never Dies',\n 'preview_mp3': 'https://p.scdn.co/mp3-preview/2d706ceae19cfbc778988df6ad5c60828dbd8389?cid=a46f5c5745a14fbf826186da8da5ecc3',\n  'duration': '4:3',\n   'artist_name': 'Scorpions',\n 'artist_url':'https://open.spotify.com/artist/27T030eWyCQRmDyuvr1kxY',\n  'album_title': 'Humanity Hour 1', \n 'album_cover_url':'https://i.scdn.co/image/ab67616d0000b273e14019d431204ff27785e349', \n 'album_cover_height': 640, \n 'album_cover_width': 640, \n 'release_date': '2007-01-01', \n 'total_tracks': 12,\n  'type_': 'album', \n  'ERROR': None}\n``\n\n## Extract Spotify playlist information by URL\n- ``\nfrom SpotifyScraper.scraper import Scraper, Request\n``\n\n- ``\n request = Request().request() ``\n \n-  ``playlist_info = Scraper(session=request).get_playlist_url_info(url='https://open.spotify.com/playlist/37i9dQZF1DX74DnfGTwugU')\n ``\n\u003e Call get_playlist_url_info function from Scraper to extract all the infromation from url.\n\u003e If the given URL is valid, it will return a dict with the below keys:\n\u003e - album_title\n\u003e - cover_url\n\u003e - author\n\u003e - author_url\n\u003e - playlist_description\n\u003e - tracks_list\n\u003e - ERROR\n \n## Download Spotify song cover by URL\n- ``\nfrom SpotifyScraper.scraper import Scraper, Request\n``\n\n- ``\n request = Request().request() ``\n \n-  ``path = Scraper(session=request).download_cover(url='https://open.spotify.com/track/7wqpAYuSk84f0JeqCIETRV?si=b35Rzak1RgWvBAnbJteHkA')\n ``\n \u003e Call download_cover function from Scraper to download the cover of the provided song.\n \n **if the provided URL is valid, it will return the path of downloaded  cover to you.**\n\n\n## Download Spotify preview song by URL\n- ``\nfrom SpotifyScraper.scraper import Scraper, Request\n``\n\n- ``\n request = Request().request() ``\n \n-  ``path = Scraper(session=request).download_preview_mp3(url='https://open.spotify.com/track/7wqpAYuSk84f0JeqCIETRV?si=b35Rzak1RgWvBAnbJteHkA')\n ``\n  \u003e Call download_preview_mp3 function from Scraper to download the preview mp3 song of the provided URL.\n \n **if the provided URL is valid, it will return the path of downloaded mp3 to you.**\n\n ## Get in touch\n\n-   Report bugs, suggest features, or view the source code  [on GitHub](https://github.com/AliAkhtari78/SpotifyScraper).\n- [Read the doc](https://spotifyscraper.readthedocs.io/en/latest/?) to use all provided functions of this library.\n- get in touch with me by my website: [Ali Akhtari](https://aliakhtari.com/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliakhtari78%2Fspotifyscraper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faliakhtari78%2Fspotifyscraper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliakhtari78%2Fspotifyscraper/lists"}