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

Use /headerapp as endpoint #3

Closed
Brawl345 opened this issue Mar 8, 2022 · 0 comments
Closed

Use /headerapp as endpoint #3

Brawl345 opened this issue Mar 8, 2022 · 0 comments
Assignees

Comments

@Brawl345
Copy link
Owner

Brawl345 commented Mar 8, 2022

Tagesschau.de uses https://www.tagesschau.de/ipa/v1/web/headerapp/ as endpoint for the stuff shown in the header. Parsing it is straightforward, since it has a breakingNews object if there are any. Attached are samples with and without breaking news.

Pro:

  • Parsing it is way faster, since it's so small
  • Also easier to parse since it has less elements
  • There were times when the current endpoint broke (wrongly encoded JSON)
  • Some breaking news are not distributed through the current endpoint (the one the app uses) so the bot "misses" some breaking news (especially if one follows directly after another) (this one was missed f.e.)

Contra:

  • Needs to be tested of course!

Attachements (rename to JSON):

@Brawl345 Brawl345 self-assigned this Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant