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.8.
To run the music placer, navigate to the src/ folder, then execute the module from your command-line:
(venv) $ cd src/
(venv) $ python -m bandcampYou'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.