Get current URL from browser using python

Chaudhry Waqas

I am running an HTTP server which serves a bitmap according to the dimensions in the browser URL i.e localhost://image_x120_y30.bmp. My server is running in infinite loop and I want to get the URL any time user requests for BITMAP, and at the end I can extract the image dimensions from the URL.

The question asked here:

How to get current URL in python web page?

does not address my problem as I am running in infinite loop and I want to keep on getting the current URL so I can deliver the requested BITMAP to the user.

Andersson

If to use Selenium for web navigation:

from selenium import webdriver
driver = webdriver.Firefox()
print (driver.current_url)

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Python: Retrieve the current URL from the browser using bottle framework

From Dev

How to get current url from browser

From Dev

Get current URL of browser

From Dev

How to get current URL from Mechanize in Python?

From Dev

How to get current URL from Mechanize in Python?

From Dev

get URL from browser

From Dev

Python - Manipulate and read browser from current browser

From Dev

Karate UI: Get current browser's URL

From Dev

Karate UI: Get current browser's URL

From Dev

Get Current Browser Name using Jquery code

From Dev

How to get the content from web browser using python?

From Dev

How to get Liferay current url that is being displayed in browser?

From Dev

How to get current url in InnApp browser in Phonegap 3.0

From Dev

Get full url from shorten url using python

From Dev

Get url of current prestashop page using smarty

From Dev

How to get parameters from current url

From Dev

Django: get current url path from actual current page

From Dev

Getting the current URL that is shown in the browser

From Dev

Get data from Heroku Postgres externally using database url in python

From Dev

How to get json data from a url using flask in python

From Dev

Get current song from Icecast using XPath

From Dev

How to get Current Quarter from Current Date using C#

From Dev

Get the last thursday of the current month using python

From Dev

Get parent of current directory from Python script

From Dev

why url works in browser but not using requests get method

From Dev

How to get HTML from the browser in SWT after setting the URL

From Dev

ProxyPass & ProxyPassReverse - Get original URL from browser address bar

From Dev

get the PDF from a URL and push it to the clients browser for download

From Dev

How to get HTML from the browser in SWT after setting the URL

Related Related

  1. 1

    Python: Retrieve the current URL from the browser using bottle framework

  2. 2

    How to get current url from browser

  3. 3

    Get current URL of browser

  4. 4

    How to get current URL from Mechanize in Python?

  5. 5

    How to get current URL from Mechanize in Python?

  6. 6

    get URL from browser

  7. 7

    Python - Manipulate and read browser from current browser

  8. 8

    Karate UI: Get current browser's URL

  9. 9

    Karate UI: Get current browser's URL

  10. 10

    Get Current Browser Name using Jquery code

  11. 11

    How to get the content from web browser using python?

  12. 12

    How to get Liferay current url that is being displayed in browser?

  13. 13

    How to get current url in InnApp browser in Phonegap 3.0

  14. 14

    Get full url from shorten url using python

  15. 15

    Get url of current prestashop page using smarty

  16. 16

    How to get parameters from current url

  17. 17

    Django: get current url path from actual current page

  18. 18

    Getting the current URL that is shown in the browser

  19. 19

    Get data from Heroku Postgres externally using database url in python

  20. 20

    How to get json data from a url using flask in python

  21. 21

    Get current song from Icecast using XPath

  22. 22

    How to get Current Quarter from Current Date using C#

  23. 23

    Get the last thursday of the current month using python

  24. 24

    Get parent of current directory from Python script

  25. 25

    why url works in browser but not using requests get method

  26. 26

    How to get HTML from the browser in SWT after setting the URL

  27. 27

    ProxyPass & ProxyPassReverse - Get original URL from browser address bar

  28. 28

    get the PDF from a URL and push it to the clients browser for download

  29. 29

    How to get HTML from the browser in SWT after setting the URL

HotTag

Archive