harshibar / common-intern Goto Github PK
View Code? Open in Web Editor NEWπ€ A selenium script to automatically apply to software engineering internships.
π€ A selenium script to automatically apply to software engineering internships.
Unused variable 'element'
When filling in the dictionary in apply.py at line 22, how can I fill in lines 29 and 30 so they link to my correct resume pdf file? And is there a way to see the submitted data in these applications? I don't seem to be getting email confirmations on my applications...
Basically, it's a toy project and nothing serious in it and
in-appropriate for use in any scenario.
Most importantly, It can't apply 1000s of jobs, not even 10 jobs
I doubt if she has tested it for direct links from the Glassdoor website.
Since the program opens a new browser, google accounts don't recognize this browser when you try to sign in. I get this error after attempting to log in.
I have also tried to change the chromedriver to open in safari so I changed
def getURLs(): driver = webdriver.Chrome(executable_path='/usr/local/bin/chromedriver')
in apply.py
to
def getURLs(): driver = webdriver.Safari(executable_path='/usr/bin/safaridriver)
but that did not change anything as it still opened Chrome for me.
is there a way to bypass the google security measures on anonymous browsers?
if the intern website doesn't requires any captcha, is it possible to make headless?
I am not able to run the script due installation issues and thinking to create a docker file. Can anyone help??
File "apply.py", line 163, in <module>
greenhouse(driver)
File "apply.py", line 54, in greenhouse
driver.find_element_by_css_selector("[data-source='paste']").click()
File "/Users/abhishek/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py", line 80, in click
self._execute(Command.CLICK_ELEMENT)
File "/Users/abhishek/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "/Users/abhishek/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/Users/abhishek/anaconda3/lib/python3.7/site-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Element <a data-source="paste" href="#">...</a> is not clickable at point (468, 1277). Other element would receive the click: <div id="ui-id-7" tabindex="-1" class="ui-menu-item-wrapper">...</div>
(Session info: chrome=78.0.3904.70)
(Driver info: chromedriver=2.37.544337 (8c0344a12e552148c185f7d5117db1f28d6c9e85),platform=Mac OS X 10.15.1 x86_64)
Job url: https://boards.greenhouse.io/myasystems/jobs/4420681002
def login(driver):
driver.get('https://www.glassdoor.com/index.htm')
time.sleep(2)
buttons = driver.find_elements_by_xpath("//button[contains(text(), 'Sign In')]")
for button in buttons:
try:
button.click()
break
except:
pass
driver.find_element(By.ID,"userEmail").send_keys(email)
buttons = driver.find_elements(By.ID,"userPassword")
for button in buttons:
try:
button.send_keys(password, Keys.ENTER)
break
except:
pass
When I run get_links.py using $python get_links.py I get this syntax error...
File "get_links.py", line 102
link = f"https://www.glassdoor.com{link}"
^
SyntaxError: invalid syntax
What could be the issue?
@harshibar @harshibar-youtube plz help
Hi, I got an error after I setup the program with my info, I know that the error means that the element is not visible yet, but I can't find a solution to it.
DevTools listening on ws://127.0.0.1:1862/devtools/browser/2700e967-dbdf-4d49-9164-4dd5edb873bb Traceback (most recent call last): File "apply.py", line 168, in <module> aggregatedURLs = get_links.getURLs() File "C:\Users\AlexisSahagun\common-intern\get_links.py", line 137, in getURLs success = go_to_listings(driver) File "C:\Users\AlexisSahagun\common-intern\get_links.py", line 48, in go_to_listings location_field.clear() File "C:\Users\AlexisSahagun\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\webelement.py", line 95, in clear self._execute(Command.CLEAR_ELEMENT) File "C:\Users\AlexisSahagun\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\webelement.py", line 633, in _execute return self._parent.execute(command, params) File "C:\Users\AlexisSahagun\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Users\AlexisSahagun\AppData\Local\Programs\Python\Python38-32\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable (Session info: chrome=84.0.4147.135)
I tried running your apply.py program and failed:
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary
I suspect that the use of executable_path has been deprecated in this line (in both files).
driver = webdriver.Chrome(executable_path='/usr/local/bin/chromedriver')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. πππ
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google β€οΈ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.