Code Monkey home page Code Monkey logo

lofi-lib's Introduction

lofi-lib ๐ŸŽง

A simple and fast way to scrape lofi-collection albums

Features

  • List Albums: Lists all found albums from a lofi-collection (based on given URL) mapped to the URL (containing all tracks).
  • User Interaction: Utilize a command-line interface (CLI) to input URLs, specify output file names, set sleep durations, and configure retry attempts.
  • Logging Enhancements: Improved logging with timestamps and configurable logging levels.
  • Concurrency: Fetch data from multiple URLs concurrently for faster execution.
  • Customization: Allow users to customize the CSV output format, such as choosing the delimiter or including/excluding specific fields.
  • Error Handling and Recovery: Detailed error messages and proper error handling mechanisms for a robust experience.

Getting Started

Prerequisites

Ensure you have Rust installed. If not, download it from rustup.

Clone the Repository

git clone https://github.com/divinewrites/lofi-lib.git
cd lofi-lib

Usage/Examples

Keep in mind https://vinyl.lofirecords.com/collections/lofi?page=[number] only goes from 1 (default) - 6 (max)

Run the program with the default lofi-collection URL (Default can be edited within scraper.rs):

cargo run

To scrape additional lofi-collection pages or other genres (e.g., synthwave), provide the URLs as command-line arguments:

cargo run "https://vinyl.lofirecords.com/collections/lofi?page=2" "https://vinyl.lofirecords.com/collections/lofi?page=3"

Contributing

Feel free to contribute by opening issues or submitting pull requests. Your feedback and suggestions are valuable.

Important

ONLY TO BE USED FOR EDUCATIONAL / DEMONSTRATIONAL PURPOSES

Please remember that this website is providing this music for free out of the goodness of their heart. Don't Take Advantage!

Enjoy lofi music with lofi-lib! ๐ŸŽง๐Ÿ˜

lofi-lib's People

Contributors

imdivinee avatar

Watchers

 avatar

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.