Browse Source

first change to also click Accept Button in English if may come for js spidering functionality

master
alpcentaur 6 months ago
parent
commit
a9c2346c04
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      spiders/fdb_spider.py

+ 6
- 0
spiders/fdb_spider.py View File

@ -174,6 +174,12 @@ class fdb_spider(object):
except Exception as e:
print(e, 'no cookies to accept..')
pass
try:
accept_button = driver.find_element("xpath","//button[contains(text(), 'Accept')]")
accept_button.click()
except Exception as e:
print(e, 'no cookies to accept..')
pass
for i in range(len(entry_jsiteration_var_list)):
time.sleep(1)

Loading…
Cancel
Save