FB Marketplace crawler
This commit is contained in:
parent
ab312868e2
commit
e2568e7979
|
@ -58,7 +58,7 @@ class FbMarketplaceProductInfo:
|
|||
logging.info("============== {}/{}: Collecting data for {} ==============".format(str(cnt),str(len(results)),result[0]))
|
||||
self.getProductInfo(result)
|
||||
sql = f"""
|
||||
update {self.config.get('crawler_schema')}.{self.config.get('tracker_tab')} set flag=1 where name='{result[0]}' and price={result[1]} and url='{result[2]}'
|
||||
update {self.config.get('crawler_schema')}.{self.config.get('tracker_tab')} set flag=1 where url='{result[2]}'
|
||||
"""
|
||||
logging.info("SQL is: {}".format(sql))
|
||||
self.cur.execute(sql)
|
||||
|
|
Loading…
Reference in New Issue