8a-scraper
توضیحات
A Python client for scraping data from 8a.nu
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | 8a-scraper-0.0.4 |
| نام | 8a-scraper |
| نسخه کتابخانه | 0.0.4 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Vishaal Agartha |
| ایمیل نویسنده | vishaalagartha@gmail.com |
| آدرس صفحه اصلی | https://github.com/vishaalagartha/8a_scraper |
| آدرس اینترنتی | https://pypi.org/project/8a-scraper/ |
| مجوز | MIT |
# 8a_scraper
[8a](https://www.8a.nu/) is a great resource to aggregate statistics on sportclimbers and boulderers. They recently deployed a new version of their website that rendered all the prior scrapers obsolete.
This tool allows 8a users to scrape content from the website using their username, password, Selenium, and BeautifulSoup.
## Installing
### Via `pip`
Install using the following command:
`pip install 8a-scraper`
The latest version is `0.0.3`. If you have already installed the package, please update it using the following command:
`pip install 8a-scraper --upgrade`
### Via GitHub
Alternatively, you can just clone this repo and import the libraries at your own discretion.
## Usage
To install the package,
This package requires the user to also install Google Chrome and [ChromeDriver](https://chromedriver.chromium.org/downloads).
Please ensure that the version of ChromeDriver install matches your current version of Google Chrome. You can check your current version of Google Chrome by opening Chrome and checking the 'About Google Chrome' panel. Ensure that the chromedriver executable is in your `$PATH` variable as well.
The user must also have an email and password that can be used to log into [8a](https://www.8a.nu/)
Additionally, the user must set the following environment variables with their current login info:
```python
_8A_USERNAME='<8a email>'
_8A_PASSWORD='<8a password>'
```
These variables are accessed using `os.getenv()`. These can be set in the `.bash_profile` file on MacOS or by 'Editing the system environmental variables' on Windows.
## API
Currently, the package only contains 2 modules: users and ascents.
The package will be expanding to include other content as well, but this is a start.
For more information, about the API please refer to the full [documentation](https://github.com/vishaalagartha/8a_scraper/blob/master/API.md)
نیازمندی
| مقدار | نام |
|---|---|
| ==4.9.1 | beautifulsoup4 |
| ==0.0.1 | bs4 |
| ==2020.6.20 | certifi |
| ==3.0.4 | chardet |
| ==2.10 | idna |
| ==4.0.1 | python-slugify |
| ==2.24.0 | requests |
| ==3.141.0 | selenium |
| ==2.0.1 | soupsieve |
| ==1.25.9 | urllib3 |
| ==3.2.2 | webdriver-manager |
| - | unittest |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl 8a-scraper-0.0.4:
pip install 8a-scraper.whl
نصب پکیج tar.gz 8a-scraper-0.0.4:
pip install 8a-scraper.tar.gz