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

poca-subscribe: parse feed to present stats to user (for use in optional filtering) #55

brokkr opened this issue May 19, 2017 · 2 comments


Copy link

commented May 19, 2017

After user enters url, we gather info on feed:

  • how often is it updated
  • what weekdays
  • on average what size is episode
  • etc.
    Criteria: Something that can be used in filtering.

This comment has been minimized.

Copy link
Owner Author

commented Jun 1, 2017

Mockup of poca-subscribe feedstats

Author: mkennedy                         PUB COUNT / 5 WEEKS
Title:  Python Bytes                     ▮  ▮  ▮
                                         ▮  ▮  ▮  ▮  ▮
Avg. size of episode:   45 Mb            ▮  ▮  ▮  ▮  ▮
Avg. length of episode: 1h 14m           ▮  ▮  ▮  ▮  ▮
                                         ▮  ▮  ▮  ▮  ▮
Latest: #23 This line is too short ...   M  T  W  T  F  S  S


add command

  • add starts with input url, then gets the feedstats
  • this also provides a check on validity of url
  • Enter to acknowledge and go on, ?? to skip
  • title input can be Enter-skipped (use title from feedstats)

stats command

  • stats will follow toggle and delete syntax
  • if nothing is input, loop through all
  • else restrict by --title or --url

This comment has been minimized.

Copy link
Owner Author

commented Jun 1, 2017




  • pub count

Stitching together

  • Create LHS and RHS as separate lists of strings of definite length (ljust if necessary)
  • list comprehension creates a unified list of single strings per line
  • '\n'.join(matrix)

@brokkr brokkr closed this Jun 2, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.