DaveParr / PyFest

0 stars 0 forks source link

Create a list of artists based on a lineup webpage #10

Closed DaveParr closed 1 year ago

DaveParr commented 1 year ago

Many websites have very developed artists lineup pages

Arctangent

https://arctangent.co.uk/line-up/ a page of artists names that links to the artists blurbs

Screenshot 2022-10-19 at 17 13 23

Each of these is a node in the dom that can be found, and then parsed for a band name. In this page each div of class="grid-media" can be read for the artist name of the a link from the URL. Going further down the node classes in the DOM "grid-media">"desc-layer">"desc-details">"grid-title" h2 styled div has the name as a readable character string.

DaveParr commented 1 year ago

Neat intro to how to use beautifulsoup to grab specific items from the DOM: https://hackersandslackers.com/scraping-urls-with-beautifulsoup/