Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 09-07-2025, 07:31 PM   #1
aflusche
Junior Member
aflusche began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Sep 2025
Device: kindle
Epoch Times needs login

Hi guys,

It appears that The Epoch Times now requires a login to view ANY full article. The Calibre recipe can only grab a preview paragraph from each article. I have an account, but I can't figure out how to pass my credentials along through Calibre.

I have tried and FAILED to add the code myself. I've experimented with adding stuff like this to the built-in recipe:

Code:
need_subscription = True

def get_browser(self):
  br = BasicNewsRecipe.get_browser(self)
  if self.username is not None and self.password is not None:
    br.open('https://profile.theepochtimes.com/en/?edition=us')
    br.select_form(nr=0)
    br['email']   = self.username
    br.submit()
    print("after submitting email")
    br['password'] = self.password
    br.submit()
    print("after login")
  return br
That produces this error:

Code:
mechanize._mechanize.FormNotFoundError: no form matching nr 0
One problem may be that the website code doesn't seem to have the login form directly in the first HTML to load. Maybe it's loading via Javascript or something.

Can anyone help?
aflusche is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Epoch Times article header format issue jma1 Recipes 4 11-06-2023 07:24 AM
Epoch Times has titles no content jma1 Recipes 0 08-20-2023 09:15 AM
Epoch Times Feed still failing jma1 Recipes 8 08-14-2023 09:31 AM
Epoch Times Feed failing jma1 Recipes 5 08-01-2023 01:20 PM
The Epoch Times recipie request jma1 Recipes 2 11-14-2021 03:13 PM


All times are GMT -4. The time now is 05:35 AM.


MobileRead.com is a privately owned, operated and funded community.