determine_image_url by BeautifulSoup #10
No reviewers
Labels
No labels
bug
contribution welcome
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
marvin8/feed2fedi!10
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/10/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Rewrote
FeedReader.determine_image_url. It return list ofsrcof all tags entry content that matchIMAGE_SELECTOR.Selector can be moved to the config, so user can tune it for their feed. Current hardcoded selector more like demo to show how user can filter out some imgs.
It depend on
beautifulsoup4, but (if i understand correctly) we already havebeautifulsoup4as secondary dependenceIn my target case this code work just fine with your recent commit
That looks good. I'll merge a bit later today.
And you are right,
beautifulsoup4was already a secondary dependency. I do think though that all primary dependencies, anything our code has animport ...statement for should be listed in thepyproject.tomlfile. So thanks for adding bs4 topyproject.tomlAlso, thinking of rewriting the conf file as a toml file. I'll work on that over the next couple of days.
Yes, of course. I just said that my PR don't really add new dependence
Do you consider also rewrite
Configurationclass? Now configuration system requere edit like 4 places to add one option, it frustrating. May be replace it with something likeconfig = ConfigParser().read(config_file_path)and simple template to generate new config file on first launch?re: dependencies:
Sorry I was just agreeing with you...
re: Configuration Class
I'll see what I can do. Hopefully using tomlkit will allow me to streamline processing.
Anyway, this pull request is now merged into the current
wipbranch. Thanks again.