job_analysis's People
Forkers
rabadzhiyski gryptos stoianandrei mmcyberus gaurav-chaurasia edwarsgts yosr-blh habelash zhefeng687 rahman-tawhid hadyanhilman maviharjit olaniyisinet filipetheanalyst keeyes remark997 ryd-dev simrit1 gedehalleux tvthanhlou mohamedawnallah lucky-2426 mun1055 ahadzaman1002 saibalaji-kokate carnage999-max prayfrme renderbay npvsantos khuynh436 shvbzt8 pranjalrastogi45 cha1rsama cmarinog cesarmdiaz11 vizinteltn aurenk danozworld geroalbornozjob_analysis's Issues
name url_search is not defined
Hello, I'm facing this issue:
C:\Users\tdiacon\AppData\Local\Temp/ipykernel_26024/796243300.py:45: DeprecationWarning: executable_path has been deprecated, please pass in a Service object
wd = webdriver.Chrome(executable_path='./chromedriver', options=chrome_options)
C:\Users\tdiacon\AppData\Local\Temp/ipykernel_26024/796243300.py:47: DeprecationWarning: find_element_by_* commands are deprecated. Please use find_element() instead
wd.find_element_by_id("session_key").send_keys(LINKEDIN_USERNAME)
C:\Users\tdiacon\AppData\Local\Temp/ipykernel_26024/796243300.py:48: DeprecationWarning: find_element_by_* commands are deprecated. Please use find_element() instead
wd.find_element_by_id("session_password").send_keys(LINKEDIN_PASSWORD)
C:\Users\tdiacon\AppData\Local\Temp/ipykernel_26024/796243300.py:49: DeprecationWarning: find_element_by_xpath is deprecated. Please use find_element(by=By.XPATH, value=xpath) instead
wd.find_element_by_xpath("//button[@class='sign-in-form__submit-button']").click()
C:\Users\tdiacon\AppData\Local\Temp/ipykernel_26024/796243300.py:53: DeprecationWarning: find_element_by_xpath is deprecated. Please use find_element(by=By.XPATH, value=xpath) instead
wd.find_element_by_xpath("//button[@class='primary-action-new']").click()
C:\Users\tdiacon\AppData\Local\Temp/ipykernel_26024/796243300.py:75: DeprecationWarning: find_element_by_xpath is deprecated. Please use find_element(by=By.XPATH, value=xpath) instead
search_count = wd.find_element_by_xpath("//small[@class='display-flex t-12 t-black--light t-normal']").text
---------------------------------------------------------------------------
NoSuchElementException Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_26024/2432219029.py in <module>
34 try:
---> 35 search_page, search_count, url_search = page_search(wd, search_location, search_keyword, search_remote, search_posted, search_page, search_count, file, logging)
36 except Exception as e:
~\AppData\Local\Temp/ipykernel_26024/796243300.py in page_search(wd, search_location, search_keyword, search_remote, search_posted, search_page, search_count, file, logging)
74 # find the number of results
---> 75 search_count = wd.find_element_by_xpath("//small[@class='display-flex t-12 t-black--light t-normal']").text
76 search_count = int(search_count.split(' ')[0].replace(',', '')) # get number before space & remove comma (ex. "1,245 results")
~\Anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py in find_element_by_xpath(self, xpath)
525 )
--> 526 return self.find_element(by=By.XPATH, value=xpath)
527
~\Anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py in find_element(self, by, value)
1250
-> 1251 return self.execute(Command.FIND_ELEMENT, {
1252 'using': by,
~\Anaconda3\lib\site-packages\selenium\webdriver\remote\webdriver.py in execute(self, driver_command, params)
429 if response:
--> 430 self.error_handler.check_response(response)
431 response['value'] = self._unwrap_value(
~\Anaconda3\lib\site-packages\selenium\webdriver\remote\errorhandler.py in check_response(self, response)
246 raise exception_class(message, screen, stacktrace, alert_text) # type: ignore[call-arg] # mypy is not smart enough here
--> 247 raise exception_class(message, screen, stacktrace)
248
NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//small[@class='display-flex t-12 t-black--light t-normal']"}
(Session info: headless chrome=102.0.5005.63)
Stacktrace:
Backtrace:
Ordinal0 [0x00522733+2434867]
Ordinal0 [0x004B07A1+1968033]
Ordinal0 [0x0039C678+837240]
Ordinal0 [0x003C94E0+1021152]
Ordinal0 [0x003C977B+1021819]
Ordinal0 [0x003F6592+1205650]
Ordinal0 [0x003E4484+1131652]
Ordinal0 [0x003F4892+1198226]
Ordinal0 [0x003E4256+1131094]
Ordinal0 [0x003BE840+976960]
Ordinal0 [0x003BF736+980790]
GetHandleVerifier [0x00793C72+2515426]
GetHandleVerifier [0x0078702F+2463135]
GetHandleVerifier [0x005C522A+620442]
GetHandleVerifier [0x005C4016+615814]
Ordinal0 [0x004B707B+1994875]
Ordinal0 [0x004BB938+2013496]
Ordinal0 [0x004BBA25+2013733]
Ordinal0 [0x004C4DE1+2051553]
BaseThreadInitThunk [0x756DFA29+25]
RtlGetAppContainerNamedObjectPath [0x76F77A9E+286]
RtlGetAppContainerNamedObjectPath [0x76F77A6E+238]
During handling of the above exception, another exception occurred:
NameError Traceback (most recent call last)
~\AppData\Local\Temp/ipykernel_26024/2432219029.py in <module>
36 except Exception as e:
37 logging.error(f'(1) FIRST exception for {search_keyword} on {search_page} of {search_count}, retrying...')
---> 38 logging.error(f'Current URL: {url_search}')
39 logging.error(e)
40 logging.exception('Traceback ->')
NameError: name 'url_search' is not defined
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.