Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Commit
•
c7f2259
1
Parent(s):
53ae920
Update app.py
Browse files
app.py
CHANGED
@@ -8,6 +8,8 @@ import datetime
|
|
8 |
|
9 |
bens_df = pd.read_excel('bens_tab.xlsx')
|
10 |
|
|
|
|
|
11 |
|
12 |
def fetch_data_to_dataframe(query, limit=50, source="mercadolibre"):
|
13 |
if source == "mercadolibre":
|
@@ -21,6 +23,7 @@ def fetch_data_to_dataframe(query, limit=50, source="mercadolibre"):
|
|
21 |
df = pd.DataFrame(items)
|
22 |
df = df[['title', 'price', 'currency_id', 'condition', 'permalink']]
|
23 |
df.columns = ['Title', 'Price', 'Currency', 'Condition', 'Link']
|
|
|
24 |
return df
|
25 |
return pd.DataFrame()
|
26 |
|
|
|
8 |
|
9 |
bens_df = pd.read_excel('bens_tab.xlsx')
|
10 |
|
11 |
+
data_crawler = pd.read_csv()
|
12 |
+
|
13 |
|
14 |
def fetch_data_to_dataframe(query, limit=50, source="mercadolibre"):
|
15 |
if source == "mercadolibre":
|
|
|
23 |
df = pd.DataFrame(items)
|
24 |
df = df[['title', 'price', 'currency_id', 'condition', 'permalink']]
|
25 |
df.columns = ['Title', 'Price', 'Currency', 'Condition', 'Link']
|
26 |
+
df['Marketplace'] = "Mercado Livre"
|
27 |
return df
|
28 |
return pd.DataFrame()
|
29 |
|