Python Forum
How to get html information from a tab of my default browser opened with webbrowser?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to get html information from a tab of my default browser opened with webbrowser?
#2
webbrowser.open_new_tab() returns boolean value. It does not return html source of the page you open.

You can use requests package or if the webpage uses JavaScript you should use tools like Selenium. webbrowser module from standard library is useless for a task such this.
Alternatively, or I would say as a better approach, you can explore the available third-party package to deal with this specific site/API
https://pypi.org/search/?q=opensea
noahverner1995 likes this post
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: How to get html information from a tab of my default browser opened with webbrowser? - by buran - Jan-14-2022, 09:09 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  does not save in other path than opened files before icode 3 1,020 Jun-23-2023, 07:25 PM
Last Post: snippsat
  Webbrowser.open() causes errors ChrisOfBristol 1 923 Apr-09-2023, 08:34 PM
Last Post: deanhystad
  Tkinterweb (Browser Module) Appending/Adding Additional HTML to a HTML Table Row AaronCatolico1 0 1,002 Dec-25-2022, 06:28 PM
Last Post: AaronCatolico1
  reading html and edit chekcbox to html jacklee26 5 3,199 Jul-01-2021, 10:31 AM
Last Post: snippsat
  Rmarkdown opened by python code - errors Rav013 0 2,145 Apr-27-2021, 03:13 PM
Last Post: Rav013
  How to get a URL from python 'webbrowser'? dheeraj 0 1,904 Apr-05-2021, 03:55 PM
Last Post: dheeraj
  Webbrowser jbrick97 3 72,369 Sep-27-2020, 03:58 AM
Last Post: ndc85430
  Making WebBrowser In PySide2 Harshil 0 1,939 Sep-16-2020, 05:03 PM
Last Post: Harshil
  webbrowser and menu not working. sik 1 1,894 Oct-31-2019, 03:39 AM
Last Post: newbieAuggie2019
  HTML to Python to Windows .bat and back to HTML perfectservice33 0 1,994 Aug-22-2019, 06:31 AM
Last Post: perfectservice33

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020