|
|
#1 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() Posts: 64
Karma: 666
Join Date: May 2020
Location: Germany
Device: android smartphone + tablet with Moon Reader and ReadEra Apps.
|
Metadata plugin: url when redirected?
Hello,
i'm wondering, if there's a chance to get the url of the actual page when redirected: page = browser.open_novisit(url, timeout=timeout).read().strip() soup = BeautifulSoup(page, 'html.parser') actual_url = ??? In the Browser Object i can't see an appropiate method. |
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,618
Karma: 28549044
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
its not on the browser object its on the response object, the one you get back from open() IIRC geturl()
|
|
|
|
| Advert | |
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| URL Checker plugin | Doitsu | Plugins | 20 | 04-18-2021 04:13 PM |
| [Metadata Source Plugin] Empty Plugin? (Fake Identifier) | mneimeyer | Plugins | 3 | 11-11-2019 09:07 PM |
| Metadata ID - url links don't open in browser | Amalthia | Calibre | 2 | 01-21-2019 05:33 AM |
| Regarding using metadata objects in identify method of metadata download plugin api | aprekates | Development | 1 | 07-06-2014 04:35 AM |
| Adding Metadata by Google Books and Amazon URL | Billa | Library Management | 3 | 11-06-2013 10:07 AM |