mirror of
https://github.com/timberjoegithub/GoogleScrape.git
synced 2026-07-22 00:19:48 +00:00
linting
This commit is contained in:
@@ -505,7 +505,8 @@ def get_google_data(driver, local_outputs):
|
|||||||
except NoSuchElementException :
|
except NoSuchElementException :
|
||||||
visitdate = "Unknown"
|
visitdate = "Unknown"
|
||||||
print(' Visited: ',visitdate)
|
print(' Visited: ',visitdate)
|
||||||
if re.match('^[a-zA-Z]+', visitdate) is None and re.match('^[a-zA-Z]+', visitdate) is not None:
|
if re.match('^[a-zA-Z]+', visitdate) is None and re.match('^[a-zA-Z]+', visitdate) \
|
||||||
|
is not None:
|
||||||
#if visitdate[:1].isalpha:
|
#if visitdate[:1].isalpha:
|
||||||
newdate,newdate2,visitdate = get_wordpress_post_date_string(visitdate, str(datetime.now()))
|
newdate,newdate2,visitdate = get_wordpress_post_date_string(visitdate, str(datetime.now()))
|
||||||
print(' Visited altered to : ',visitdate)
|
print(' Visited altered to : ',visitdate)
|
||||||
|
|||||||
Reference in New Issue
Block a user