Created
April 21, 2020 08:36
-
-
Save BMU-Verlag/82cb9486afb8fde975f76a35ff46bb64 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if __name__ == '__main__': | |
articles = read_json() | |
valid_articles = validate_articles(articles) | |
for article in valid_articles: | |
article_details = get_article_details(article) | |
if (article_details['price'] is not None and | |
article_details['price'] <= article['target_price']): | |
send_email(article_details) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment