Giter VIP home page Giter VIP logo

cruel's Introduction

Cruel is a Python web-request library that allows you to extract detailed information from any webpage or site.

Features

  • Inbuilt beautiful soup instance
  • ScraperAPI powered; so you don't have to worry about IP blocking

Installation

You can install the cruel using pip:

pip install cruel

Usage

Below are examples of how to use the cruel to extract data from Fiverr gig pages and user profiles.

Scrape Example

from cruel import session

session.set_scraper_api_key("XYZ-SCRAPER_API_KEY")
response = session.get("https://www.fiverr.com/username/your-gig-slug")  # your fiverr url should be here
print(response.soup)  # gives you beautiful soup instance
# You can use `response.soup` to further extract your information. 

Get your ScraperAPI key here.

Project Structure

The cruel is organized into several modules to enhance code readability and maintainability:

  • cruel
    • __init__.py: For exporting session
  • cruel.utils
    • req.py: Extending requests for Fiverr scraping
    • scrape_utils.py: Utilities for scraping

License

GPL

Contributing

New pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Author

Check more of my projects.

cruel's People

Contributors

bishwas-py avatar

Stargazers

Bishwas Bhandari avatar DIPAK KUMAL avatar bikram bhattarai avatar  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.