FB Marketplace crawler

This commit is contained in:
Shariar Imtiaz 2024-02-01 13:26:51 +04:00
parent 9e60352a9f
commit d82e3afb49
1 changed files with 2 additions and 0 deletions

View File

@ -97,6 +97,8 @@ class FbMarketplaceProducts:
df['Price'] = df['Price'].replace('Free', '0')
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"