I have this URL and I just want to get a part of it:
https://onevideo.aol.com/#/inventorysource/1024374?makeDuplicate=true
The part I want to obtain is the id: 1024374 to then enter it in this other url:
https://onevideo.aol.com/inventory_sources/get_adtag_urls_export?secure=0&ft=EXCEL&piggyback_type=ANY&id=1024374&at=MOBILE_WEB&_sid=60c7302b-9ede-4308-93f6-014975706aff
I explain a little to clear up doubts. With selenium I am redirected to the first URL. Here I want to get the ID of the url. I thought I would do it with driver.current_url
but I get the whole url. Then I need the ID that I get to enter the second url where the ID goes.
Working with Python 2.7