|
|
#1 |
|
Junior Member
![]() Posts: 2
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
Code:
mechanize._mechanize.FormNotFoundError: no form matching nr 0 Can anyone help? |
|
|
|
|
|
#2 |
|
Junior Member
![]() Posts: 2
Karma: 10
Join Date: Sep 2025
Device: kindle
|
Any help?
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,656
Karma: 28549046
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
If it has implemented login via JS you will need to use devtools in a browser to check the actual login request/responses generated by the JS and clone then in the recipe.
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Epoch Times article header format issue | jma1 | Recipes | 4 | 11-06-2023 08:24 AM |
| Epoch Times has titles no content | jma1 | Recipes | 0 | 08-20-2023 10:15 AM |
| Epoch Times Feed still failing | jma1 | Recipes | 8 | 08-14-2023 10:31 AM |
| Epoch Times Feed failing | jma1 | Recipes | 5 | 08-01-2023 02:20 PM |
| The Epoch Times recipie request | jma1 | Recipes | 2 | 11-14-2021 04:13 PM |