Skip to content

Commit

Permalink
Update readme version
Browse files Browse the repository at this point in the history
  • Loading branch information
FelipeCRamos committed Dec 3, 2018
1 parent 758b420 commit f0cb622
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ your computer, and the following dependencies:
+ `urllib2`
+ `re`
+ `json`
+ `datetime`
+ `sys`

## Execution
First, you'll prepare the ambient with `make`. Then, to execute, just open the
Expand All @@ -22,8 +24,8 @@ python3 pcalc [file-with-links] [kabum/mercadolivre]
Let's say i have a file on `configs/test.txt`, and inside of it, i have:
```
https://produto.mercadolivre.com.br/MLB-1146730903-amd-ryzen-2700x-am4-43ghz-octa-core-16theads-rgb-lacrado-_JM
https://produto.mercadolivre.com.br/MLB-1024669523-adaptador-ativo-displayport-p-hdmi-20-4k-60hz-club3d-uhd-_JM#reco_item_pos=2&reco_backend=machinalis-seller-items&reco_backend_type=low_level&reco_client=vip-seller_items-above&reco_id=3f6356d6-c593-4365-a9e6-91122a156cba
https://produto.mercadolivre.com.br/MLB-960954066-memoria-kingston-hyperx-fury-8gb-2400mhz-ddr4-gamer-cl15-_JM#reco_item_pos=2&reco_backend=mp2v-combos-v3&reco_backend_type=low_level&reco_client=vip_combo&reco_id=eda13a9f-bdb7-4696-9425-a73a95d150f9
https://produto.mercadolivre.com.br/MLB-1024669523-adaptador-ativo-displayport-p-hdmi-20-4k-60hz-club3d-uhd-_JM
https://produto.mercadolivre.com.br/MLB-960954066-memoria-kingston-hyperx-fury-8gb-2400mhz-ddr4-gamer-cl15-_JM
```
I could run the program by typing the following commands:
```bash
Expand All @@ -48,12 +50,13 @@ With that in mind, follow these steps:

def fetch(self, link):
# here you fetch on the link given the information you want
# you can check out some existing examples like kabum.py or mercadolivre.py

def getPrice(self):
# return the price that you've found
# return the price that you've found on fetch function

def getName(self):
# return the name of the product that you've found
# return the name of the product that you've found on fetch function
```

+ Then, when you're done, go to the `src/fetcher.py` file and include on the
Expand All @@ -76,4 +79,7 @@ header the name of your brand new API, like the following:
# Authorship
Developed by Felipe Ramos under the **MIT License**.

Current version: v0.2
##### Stats
```
version 0.2.1
```
3 changes: 2 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/usr/bin/env python3
#coding: utf-8

# Price Fetcher
# A simple log generator for getting current prices on specified products.
# Author: FelipeCRamos
# Version: 0.2
# Version: 0.2.1

from product import Product

Expand Down

0 comments on commit f0cb622

Please sign in to comment.