bookdepositoryscraper-0.1.1
توضیحات
Scraper for the Book Depository website
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | bookdepositoryscraper-0.1.1 |
| نام | bookdepositoryscraper |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | AdeyinkaOresanya |
| ایمیل نویسنده | adeyinkaoresanya@gmail.com |
| آدرس صفحه اصلی | https://github.com/adeyinkaoresanya/bookdepositoryscraper |
| آدرس اینترنتی | https://pypi.org/project/bookdepositoryscraper/ |
| مجوز | MIT |
# Book Depository Scraper
## Description
The Book Depository Scraper is a Python package application for scraping the Book Depository [website](https://www.bookdepository.com/) based on a specific genre and number of items.
## Tools/Libraries required
* [Python 3.9](https://python.org) : Base programming language for development. The latest version of python.
* bs4
* pandas
* requests
## Installation
Use the package manager [pip](https://pip.pypa.io/en/stable/) to install bookdepositoryscraper.
To install directly from github repository
```python
!pip install git+https://github.com/adeyinkaoresanya/bookdepositoryscraper.git
```
## Usage
The scraper takes in two arguments---genre and number of items--- returns a dataframe which can be cleaned and converted to CSV.
To collect data without cleaning:
```python
from scraper import Scraper
scraper = Scraper("thriller", 300)
df= scraper.scrape_data()
scraper.create_csv(df, "books")
```
To collect clean data:
```python
from scraper import Scraper
from src.preprocess import ProcessData
scraper = Scraper("thriller", 300)
df= scraper.scrape_data()
s= ProcessData()
clean_df= s.clean_dataframe(df_total)
scraper.create_csv(clean_df, "books")
```
## Contribution
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
## License
The MIT License - Copyright (c) 2021 - Adeyinka J. Oresanya
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl bookdepositoryscraper-0.1.1:
pip install bookdepositoryscraper-0.1.1.whl
نصب پکیج tar.gz bookdepositoryscraper-0.1.1:
pip install bookdepositoryscraper-0.1.1.tar.gz