Skip to content

Commit

Permalink
fuck u twitter
Browse files Browse the repository at this point in the history
  • Loading branch information
kaixinol committed Nov 12, 2023
1 parent 17b7412 commit 675aa69
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions twitter_user_tweet_crawler/tweet.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,9 @@ def click_sensitive_element():

result = None
available_driver.get(self.link)
available_driver.implicitly_wait(20)
wait = WebDriverWait(available_driver, 20)
element = wait.until(EC.presence_of_element_located((By.XPATH, '//*[@id="react-root"]/div/div/div['
'2]/main//section/div/div/div['
'1]/div/div/article/div/div/div['
'3]//*/time/ancestor::*[3]')))
element = wait.until(EC.presence_of_element_located((By.XPATH, '//*/time/ancestor::*[3]')))
time_stamp = element.find_element(By.XPATH, '//time').get_attribute('datetime')
location = True
try:
Expand Down

0 comments on commit 675aa69

Please sign in to comment.