find products
download the project on github, after that open your terminal and write:
$ cd mercado-livre-api
# enter in the app folder
$ pip install -r requirements.txt
# install the dependencies
$ python app.py
# execute the app
to stop the server(localhost) press Ctrl+C or Cmd+C
This is an example
to use the api, use this link: https://mercado-livre-api-loshad.herokuapp.com/api/find-all/{product} or this link https://mercado-livre-api-loshad.herokuapp.com/api/find/{product}
This is an example
{
"products": [
{
"coin": "R$",
"id": 0,
"link": "https://produto.mercadolivre.com.br/MLB-945375944-maxi-chocolate-bauducco-display-c20un-_JM#position=5&search_layout=stack&type=item&tracking_id=dc4917b3-0dd3-4181-8a29-670bf54f519f",
"name": "Maxi Chocolate Bauducco Display C/20un",
"price": "15.90"
},
{
"coin": "R$",
"id": 1,
"link": "https://produto.mercadolivre.com.br/MLB-1882188964-nestle-chocobiscuit-80g-_JM#position=6&search_layout=stack&type=item&tracking_id=dc4917b3-0dd3-4181-8a29-670bf54f519f",
"name": "Nestle Chocobiscuit 80g",
"price": "5.53"
}
],
"searched_day": "Tuesday, September 07, 2021 20:53:22"
This is an example
{
"product": [
{
"coin": "R$",
"id": 0,
"link": "https://produto.mercadolivre.com.br/MLB-945375944-maxi-chocolate-bauducco-display-c20un-_JM#position=5&search_layout=stack&type=item&tracking_id=dc4917b3-0dd3-4181-8a29-670bf54f519f",
"name": "Maxi Chocolate Bauducco Display C/20un",
"price": "15.90"
}
],
"searched_day": "Tuesday, September 07, 2021 20:53:22"
/api/save/{product name}/{product id in the /api/find-all/ route}/{your email, example: test123}/{your email provider, example: gmail}
example: https://mercado-livre-api-loshad.herokuapp.com/api/save/chocolat/0/test123/gmail
{
"Message": "Saved on mercado-livre-api db"
}
after that your product is going to saved on mercado-livre-api db, Which will send weekly emails with product information
ask in talk