Skip to content
This repository was archived by the owner on Apr 29, 2025. It is now read-only.

Commit d5383cb

Browse files
committed
Update Web Crawling Pipeline
1 parent 805928c commit d5383cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# SECURITY WARNING: keep the secret key used in production secret!
3939
SECRET_KEY = env('SECRET_KEY')
4040

41-
SELENIUM_HEADLESS = env('SELENIUM_HEADLESS', False)
41+
SELENIUM_HEADLESS = env('SELENIUM_HEADLESS')
4242
if SELENIUM_HEADLESS == 'True':
4343
SELENIUM_HEADLESS = True
4444
else:

seleniumpy/management/commands/crawl.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def handle(self, *args, **options):
3939
el = browser.find_element(By.XPATH, "//input[@id='name']")
4040
el.send_keys('gdpr'+Keys.ENTER)
4141

42-
time.sleep(60)
42+
time.sleep(1)
4343

4444
browser.quit()
4545
self.stdout.write(self.style.SUCCESS('Success'))

0 commit comments

Comments
 (0)