![]() |
#1 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 131
Karma: 150390
Join Date: Nov 2011
Location: Pacific NorthWest
Device: Kindle Fire
|
Need Get-Browser per Article
My goal is to set the "referer" (sic) header for each Article, for certain referrer-protected pages.
Initially I thought of "get_browser", but it's only called once. "clone_browser" is called at about the right rate, but it's passed the Browser returned by get_browser(), which has the first page only, not the target one. So how can I get the target URL in clone_browser or otherwise get a chance to modify headers on the way to retrieval? Thanks. Last edited by TechnoCat; 01-15-2012 at 06:22 PM. |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,219
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Use get_obfuscated_article() in your recipe. You can clone the browser yourself in that method and change the headers however you like.
|
![]() |
![]() |
Advert | |
|