Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Download all secret links from a map design website
There is a website which shows links on a map (map layer currently can't be shown but links can be shown as points).
To view this website, this must be followed: (Pictures 1-2-3-4 also show the way)
Firstly, click this website '', Picture 1
Secondly, choose '15. Kizilirmak Havzasi' from 'Havza' tab, Picture 2
Finally, click 'sorgula' bottom. Picture 3
After the final stage, you should view the website ('') where the points can be shown on a map. Picture 4
Normally, I can use selenium to download webpages or can grab all links using different libraries. However, these methods can't obtain the links because they are embedded almost in a secret way.
I would like to download all links that these points have.
How can I get them?
from selenium import webdriver
from import Select
from import WebDriverWait

driver = webdriver.Firefox(executable_path=r'D:\geckodriver.exe')
Select(driver.find_element_by_id("ctl00_hld1_cbHavza")).select_by_visible_text("15. Kizilirmak Havzasi")
parent_handle = driver.current_window_handle
all_urls = []
all_images = driver.find_elements_by_xpath("//div[contains(@id,'OL_Icon')]/img")
for image in all_images :
     for handle in driver.window_handles :
          if handle != parent_handle:
              WebDriverWait(driver, 5).until(lambda d: d.execute_script('return document.readyState') == 'complete')
This script doesn't continue after 'parent_handle = driver.current_window_handle' line.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  Extracting all the links on a website randeniyamohan 1 816 Jan-09-2020, 04:47 PM
Last Post: Clunk_Head
  Python Rest API Public/Secret Keys Authentication Nonce dn237 1 600 Oct-31-2019, 02:07 AM
Last Post: dn237
  Extracting links from website with selenium bs4 and python M1ck0 1 589 Jul-20-2019, 10:29 PM
Last Post: Larz60+
  download pdf file from website m_annur2001 1 625 Jun-21-2019, 05:03 AM
Last Post: j.crater
  webscrapping links and then enter those links to scrape data kirito85 2 590 Jun-13-2019, 02:23 AM
Last Post: kirito85
  I wan't to Download all .zip Files From A Website (Project AI) eddywinch82 68 10,502 Oct-28-2018, 02:13 PM
Last Post: eddywinch82

Forum Jump:

Users browsing this thread: 1 Guest(s)