Git Product home page Git Product logo

libraff_az's Introduction

libraf_az Web Scraping Project

Table of Contents

Overview

The libraf_az project is a web scraping tool developed using Scrapy, a Python web scraping framework. It is designed to extract book information from the website "libraff.az." The spider, named "main," scrapes book details such as book names and images and can handle pagination to scrape multiple pages of book listings.

Project Structure

The project has the following structure:

libraf_az/
│   scrapy.cfg
│
└── libraf_az/
    │   __init__.py
    │   items.py
    │   middlewares.py
    │   pipelines.py
    │   settings.py
    │   spiders/
    │       main_spider.py
│
└── images/
│       # Directory where scraped book images are stored
│
└── README.md
  • libraf_az: The main project directory.
  • scrapy.cfg: Scrapy project configuration file.
  • libraf_az: The Python package for the project.
  • spiders: The directory containing Scrapy spider scripts.
  • images: The directory where scraped book images are stored.
  • README.md: This file providing project documentation.

Prerequisites

Before using this web scraping tool, ensure that you have the following dependencies installed:

  • Python 3.x
  • Scrapy
  • Other dependencies specified in the requirements.txt file

You can install Scrapy and other dependencies using the following command:

pip install -r requirements.txt

Getting Started

To start using this web scraping tool, follow these steps:

  1. Clone this repository to your local machine:
git clone https://github.com/yourusername/libraf_az.git
cd libraf_az
  1. Install the required dependencies as mentioned in the Prerequisites section.

  2. Customize the spider settings in libraf_az/settings.py to match your web scraping requirements.

  3. Run the spider using the following command:

scrapy crawl main

The spider will start scraping book data from the specified URL(s) and store the images in the images directory.

Usage

The spider is named "main" and is set to scrape the "libraff.az" website for book information. It extracts book names and images. You can customize the spider to scrape additional information as needed.

Customization

You can customize the spider's behavior by modifying the following:

  • Adjusting the CSS selectors in the main_spider.py script to scrape different data elements.
  • Configuring pagination handling for websites with multiple pages.
  • Modifying the item pipeline to store data in a different format or location.

Contributing

If you would like to contribute to this project, feel free to fork the repository, make your changes, and submit a pull request. Please follow the project's coding standards and provide clear documentation for your contributions.

License



Happy web scraping!

libraff_az's People

Contributors

ismat-samadov 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.