freeg-0.1.1
توضیحات
Scrape limited free games
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | freeg-0.1.1 |
| نام | freeg |
| نسخه کتابخانه | 0.1.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | refk32 |
| ایمیل نویسنده | refk32@gmail.com |
| آدرس صفحه اصلی | https://github.com/refk32/freeg |
| آدرس اینترنتی | https://pypi.org/project/freeg/ |
| مجوز | - |
# freeg
freeg is simple script to scrape limited free games.
Currently only able to scrape website https://isthereanydeal.com/specials/.
# Installation
```sh
$ pip install freeg
```
# Usage
#### **From console**
##### Basic
```sh
$ freeg
1. Watch Dogs 2 - epicgames.com
2. Stick It To The Man - epicgames.com
3. Football Manager 2020 - epicgames.com
Choose game(s) :
```
Choose and enter the number according to the games you want to claim.
```sh
Choose game(s) : 1
```
It will automatically open (in this example) *Watch Dogs 2* game page on *Epic Games* store from your default web browser.
##### Open multiple games
You can also open multiple games with `,` and `-` symbol
```
1,2 # Open games 1 and 2
1-3 # Open games 1,2,3
1,3-6 # Open games 1,3,4,5,6
6,2-3 # Open games 6,2,3 (order doesn't matter)
2-3,6 # Same with above
```
#### **Using `scraper.extract()`**
```
from freeg import scraper
games = scraper.extract()
```
`games` would look like this :
```
[
{
"title":"Bridge Constructor",
"url":"https://gaming.amazon.com/loot",
"store":"amazon.com",
"time_left":"26 days left"
},
{
"title":"Watch Dogs 2",
"url":"https://www.epicgames.com/store/en-US/product/watch-dogs-2/home",
"store":"epicgames.com",
"time_left":"4 days left"
},
{
"title":"Stick It To The Man",
"url":"https://www.epicgames.com/store/en-US/product/stick-it-to-the-man/home",
"store":"epicgames.com",
"time_left":"4 days left",
}
]
```
# Notes
- Currently only able to scrape website https://isthereanydeal.com/specials/.
- Some games may have wrong information *(ex: already free forever, region locked on specific store)*
نیازمندی
| مقدار | نام |
|---|---|
| - | requests |
| - | beautifulsoup4 |
| - | tldextract |
| - | colorama |
| - | lxml |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl freeg-0.1.1:
pip install freeg-0.1.1.whl
نصب پکیج tar.gz freeg-0.1.1:
pip install freeg-0.1.1.tar.gz