FB Marketplace crawler
This commit is contained in:
parent
9e60352a9f
commit
d82e3afb49
|
@ -97,6 +97,8 @@ class FbMarketplaceProducts:
|
||||||
df['Price'] = df['Price'].replace('Free', '0')
|
df['Price'] = df['Price'].replace('Free', '0')
|
||||||
df['Price'] = df['Price'].str.replace('₫', '')
|
df['Price'] = df['Price'].str.replace('₫', '')
|
||||||
df['Price'] = df['Price'].str.replace(',', '')
|
df['Price'] = df['Price'].str.replace(',', '')
|
||||||
|
df['Price'] = pd.to_numeric(df['Price'], errors='coerce')
|
||||||
|
df['Price'] = df['Price'].fillna(0)
|
||||||
|
|
||||||
filename = 'facebook_crawler_tracker' + str(datetime.now().strftime('%Y%m%d%H%M%S')) + ".csv"
|
filename = 'facebook_crawler_tracker' + str(datetime.now().strftime('%Y%m%d%H%M%S')) + ".csv"
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue