Skip to content

realpython/python-web-scraping-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

python-web-scraping-examples

BandLeader

The code sample found in bandleader.py accompanies this post on realpython.com. It introduces the reader to using Python to control headless web browsers. Specifically, bandleader.py lets you play music from bandcamp through your Python shell!

To play around with bandleader.py, see the the tutorial for setting up, then run something like:

>>> from bandleader import BandLeader
>>> bl = BandLeader('myhistory.csv')
>>> bl.play()            # should start playing a track

>>> bl.play(3)           # plays the third track in the listing

>>> bl.play_next()       # advances the track
 
>>> bl.more_tracks()     # see more music to play with

>>> bl.browser.quit()    # close the webdriver instance

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages