Giter VIP home page Giter VIP logo

az_lyrics_webscraping's Introduction

AZ Lyrics Web scraping

The azlyrics.py file is a file you can import into your jupyter notebook to extract artist and lyrics data.

Please do not misuse these files. This is a demonstration of how to do web scraping and use Beautiful Soup. Please do not use it to make calls for artistis with more than 10 songs. (see below to see which artists to use this for)

Functions

Look at the azlyrics.py file to get an indepth understanding of how each function works.

Here is a demonstration of the azlyrics library. It has the following functions:

  • get_songs(artist_name): returns the links of all the songs of the artist

  • get_lyrics_for_artist(artist_name) returns the lyrics for each song, along with song title, album and artist information

  • get_lyrics_details(artist_name) returns the lyrics for each song, along with song title, album and artist information and statistics - most occurring word and number of words

  • process_song_lyrics(lyrics) where lyrics is a list returned by get_lyrics_for_artist(artist_name)

Other functions which do exist are:

  • get_song_links(song_list_link) where song_list_link is the link of an artist on azlyrics.com

  • lyric_counter(lyrics) where lyrics is a list returned by get_lyrics_for_artist

Artists to demonstrate with

Use:

  • Zane
  • Priyanka Chopra

Do not use artists like:

  • Drake
  • Eminem
  • Adele

az_lyrics_webscraping's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.