forked from SEProjGrp5/slash
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/secheaper/cheaper
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
## :money_with_wings: cheaper | ||
|
||
[](https://opensource.org/licenses/MIT) [](https://github.com/rahil1304/cheaper/actions/workflows/python-app.yml) [](https://zenodo.org/badge/latestdoi/400871267) | ||
|
||
|
||
An upcoming chrome extension and API that scrapes the most popular e-commerce websites to get the best deals on the searched query across these websites. | ||
|
||
### What does cheaper do? | ||
Pass any search string to the cheaper API. It can be called by the following command | ||
<pre><code>cheaper 'Philips Hue Bulb'</code></pre> | ||
|
||
The API returns the prices for the searched items from e-commerce websites in JSON format | ||
|
||
``` | ||
{ | ||
ts: 1630436269, | ||
website: 'amazon', | ||
searchedString: 'Philips Hue Bulb', | ||
results: [ | ||
{ | ||
title: 'Philips Hue White A21 High Lumen Smart Bulb, 1600 Lumens, Bluetooth & Zigbee compatible (Hue Hub Optional), Works with Alexa & Google Assistant', | ||
price: 19.99, | ||
currency: 'USD', | ||
... | ||
} | ||
], | ||
... | ||
} | ||
``` | ||
|
||
### JSON Configuration | ||
Configuration information of the returned JSON | ||
|
||
| Key | Type | Description | | ||
|---------|--------------|------------------------------------| | ||
| ts | ```int``` | Unix timestamp in seconds | | ||
| website | ```string``` | Name of e-commerce website scraped | | ||
| searchedString | ```string``` | String used to search product | | ||
| results | ```list``` | List of results | |