This repository contains the module bandcamp, which is the sample app built in the Real Python tutorial Modern Web Automation With Python and Selenium.
Create and activate a Python virtual environment.
Then, install the requirements:
(venv) $ python -m pip install -r requirements.txtThe only direct dependency for this project is Selenium. You should use a Python version of at least 3.10, which is necessary to support structural pattern matching.
You'll need a Firefox Selenium driver called geckodriver to run the project as-is. Make sure to download and install it before running the project.
To run the music player, install the package, then use the entry point command from your command-line:
(venv) $ python -m pip install .
(venv) $ bandcamp-playerYou'll see a text-based user interface that allows you to interact with the music player:
Type: play [<track_number>] | tracks | more | exit
>
Type one of the available commands to interact with Bandcamp's Discover section through your headless browser. Listen to songs with play, list available tracks with tracks, and load more songs using more. You can exit the music player by typing exit.
Martin Breuss - Email: martin@realpython.com Bartosz Zaczyński - Email: bartosz@realpython.com
Distributed under the MIT license. See LICENSE for more information.