diff --git a/manual/news.rst b/manual/news.rst index 1f9b07603b..a8028ef47c 100644 --- a/manual/news.rst +++ b/manual/news.rst @@ -259,7 +259,7 @@ The next interesting feature is:: def get_browser(self): ... -``needs_subscription = True`` tells calibre that this recipe needs a username and password in order to access the content. This causes, calibre to ask for a username and password whenever you try to use this recipe. The code in :meth:`calibre.web.feeds.news.BasicNewsRecipe.get_browser` actually does the login into the NYT website. Once logged in, calibre will use the same, logged in, browser instance to fetch all content. See `mechanize `_ to understand the code in ``get_browser``. +``needs_subscription = True`` tells calibre that this recipe needs a username and password in order to access the content. This causes, calibre to ask for a username and password whenever you try to use this recipe. The code in :meth:`calibre.web.feeds.news.BasicNewsRecipe.get_browser` actually does the login into the NYT website. Once logged in, calibre will use the same, logged in, browser instance to fetch all content. See `mechanize `_ to understand the code in ``get_browser``. The next new feature is the :meth:`calibre.web.feeds.news.BasicNewsRecipe.parse_index` method. Its job is diff --git a/src/calibre/web/feeds/news.py b/src/calibre/web/feeds/news.py index a29383df82..37fe4b594c 100644 --- a/src/calibre/web/feeds/news.py +++ b/src/calibre/web/feeds/news.py @@ -471,7 +471,7 @@ class BasicNewsRecipe(Recipe): def get_browser(self, *args, **kwargs): ''' Return a browser instance used to fetch documents from the web. By default - it returns a `mechanize `_ + it returns a `mechanize `_ browser instance that supports cookies, ignores robots.txt, handles refreshes and has a mozilla firefox user agent.