Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starred items returning error 403 #73

Open
kTag opened this issue Jan 27, 2024 · 2 comments
Open

Starred items returning error 403 #73

kTag opened this issue Jan 27, 2024 · 2 comments

Comments

@kTag
Copy link

kTag commented Jan 27, 2024

I have 63 items in my starred items from the UI, but I can only access 33 from the API.
The other 30 are returning error 403.
I know I have unsubscribed to a bunch of feeds that the items are from, but why I can see them in the UI and it's not returned through the API?
What endpoint am I suppose to call to retrieve the missing 30 items?

@benubois
Copy link
Member

benubois commented Jan 27, 2024 via email

@kTag
Copy link
Author

kTag commented Feb 4, 2024

Thanks for reverting, I'm reading the list of starred entries and I try to retrieve them one by one:

count = 0
session = requests.Session()
session.auth = ('YYY','XXX')
res=session.get('https://api.feedbin.com/v2/starred_entries.json')
for entry in ast.literal_eval(res.content.decode('UTF-8')):
    str_entry=str(entry)
    res=session.get(f'https://api.feedbin.com/v2/entries/{str_entry}.json')
    if res.status_code == 200:
        print(res.content)
        count = count + 1
print(count)

I get 33 expected entries and for 30 of them I get an error 403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants