Skip to content

Instantly share code, notes, and snippets.

@BMU-Verlag
Created April 21, 2020 08:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BMU-Verlag/82cb9486afb8fde975f76a35ff46bb64 to your computer and use it in GitHub Desktop.
Save BMU-Verlag/82cb9486afb8fde975f76a35ff46bb64 to your computer and use it in GitHub Desktop.
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