Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defaults to Chrome Headless #25

Merged
30 commits merged into from
Dec 14, 2021
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
cb83d43
updated to recent and made headless
pws1453 Dec 11, 2021
5bb75ff
lol path fix
pws1453 Dec 11, 2021
981f912
Added option parsing for 'debug' option
pws1453 Dec 12, 2021
1148fa9
removed .pyc binaries
pws1453 Dec 12, 2021
5dd9284
resolved merge
pws1453 Dec 12, 2021
12572ff
Waits for page to fully load.
bolshoytoster Dec 12, 2021
2641b23
fix merge again
pws1453 Dec 12, 2021
9d2df2b
Improved python 2 support
bolshoytoster Dec 12, 2021
9622901
Bugger
bolshoytoster Dec 12, 2021
dad8ca4
Merge branch 'main' into main
bolshoytoster Dec 12, 2021
6a39ec9
Added another `WebDriverWait().until()` in `start_driver`
bolshoytoster Dec 12, 2021
0a6bc41
Changed key[:5] == 'email' -> key in ('email', 'email-retype')
bolshoytoster Dec 12, 2021
422e0e1
Merge branch 'main' of https://github.com/bolshoytoster/KelloggBot in…
bolshoytoster Dec 12, 2021
b415ded
Tried to do some 'automated captcha alert' bypass techniques; added h…
pws1453 Dec 12, 2021
ff6d0fb
Added the undetected_chromedriver module as a dependency
bolshoytoster Dec 12, 2021
132ae62
Merge branch 'main' into main
bolshoytoster Dec 12, 2021
1af1cb4
Revert adding undetected_chromedriver
bolshoytoster Dec 13, 2021
43c4d21
Merge branch 'main' of https://github.com/bolshoytoster/KelloggBot in…
bolshoytoster Dec 13, 2021
dd481cf
Merge pull request #1 from bolshoytoster/main
pws1453 Dec 13, 2021
7647356
Make salary more convincing
bolshoytoster Dec 13, 2021
8da2d9d
Merge pull request #2 from bolshoytoster/main
pws1453 Dec 13, 2021
2e4cc89
Hopefully get around the email verification
bolshoytoster Dec 13, 2021
0762663
Salary is now in thousands
bolshoytoster Dec 13, 2021
b3cc952
Removed the recaptcha code
bolshoytoster Dec 13, 2021
4fe4fdd
Merge pull request #3 from bolshoytoster/main
pws1453 Dec 13, 2021
8d402b3
Replaced json.loads with Response.json()
bolshoytoster Dec 13, 2021
71fd2ef
Added support for mail.tm
bolshoytoster Dec 14, 2021
a22520d
Merge pull request #4 from bolshoytoster/main
pws1453 Dec 14, 2021
3b8882a
Merge pull request #5 from pws1453/email-verification
pws1453 Dec 14, 2021
7301b1d
Fixed waiting. Updated README. Added some verbosity around email crea…
pws1453 Dec 14, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added constants/__pycache__/common.cpython-310.pyc
Binary file not shown.
Binary file added constants/__pycache__/elementIds.cpython-310.pyc
Binary file not shown.
Binary file added constants/__pycache__/email.cpython-310.pyc
Binary file not shown.
Binary file added constants/__pycache__/location.cpython-310.pyc
Binary file not shown.
Binary file added constants/__pycache__/urls.cpython-310.pyc
Binary file not shown.
Binary file added constants/__pycache__/xPaths.cpython-310.pyc
Binary file not shown.
5 changes: 4 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

from faker import Faker
from selenium import webdriver
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.support.ui import Select

from constants.common import *
Expand All @@ -23,7 +24,9 @@


def start_driver(random_city):
driver = webdriver.Chrome(chromedriver_location)
options = Options()
options.headless = True
driver = webdriver.Chrome(options=options,executable_path=chromedriver_location)
driver.get(CITIES_TO_URLS[random_city])
driver.implicitly_wait(10)
time.sleep(2)
Expand Down