title: How do I get the phone number of gumtree when its hidden
body: <p>The URL I am trying to scrape = <a href="https://www.gumtree.com/p/property-to-rent/newly-decorated-3-bed-flat-with-living-room-and-balcony-for-rent/1394143991?srn=true" rel="nofollow noreferrer">https://www.gumtree.com/p/property-to-rent/newly-decorated-3-bed-flat-with-living-room-and-balcony-for-rent/1394143991?srn=true</a></p>
  <p>So far I have tried using selenium to login and check the phone number but that does not work. Logging in just renders a blank page via selenium.</p>
  <p><a href="https://i.stack.imgur.com/iuXZF.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iuXZF.png" alt="Post Login ScreenShot" /></a></p>
  <p>The above screenshot is after clicking on the reveal button via selenium and then logging in using a valid account. The above screenshot is rendered after entering login details and clicking on the log in button.</p>
  <pre><code>driver = webdriver.Chrome('pathhere')
  #driver = webdriver.Firefox(executable_path = r'patherhere')
  #driver = webdriver.Edge('pathhere')
          
  driver.get('https://www.gumtree.com/p/property-to-rent/newly-decorated-3-bed-flat-with-living-room-and-balcony-for-rent/1394143991?srn=true')
  
  link = driver.find_element_by_link_text('Reveal')
  driver.execute_script(&quot;arguments[0].click();&quot;, link)
  
  time.sleep(2)
          
  emailInp = driver.find_element_by_name('username')
  time.sleep(2)
  emailInp.send_keys('email here')
  time.sleep(2)
  passwordInp = driver.find_element_by_name('password')
  time.sleep(2)
  passwordInp.send_keys('password here')
  time.sleep(2)
  submit=driver.find_element_by_xpath('/html/body/div[2]/div/div[3]/main/div/section/div/form/fieldset/div[3]/button')
  time.sleep(1)
  driver.execute_script(&quot;arguments[0].click();&quot;, submit)
  time.sleep(2)
  </code></pre>
  <p>As seen in the above code I have used almost all web browsers but they give me the same result :/ Is there any way I can log in to this site? The default login on the home page of the above site also renders a white blank page for me. Is there a different method for getting the hidden-phone number? Thank you for reading. Have a great day!</p>