Skip to content

Instantly share code, notes, and snippets.

@Hkazanci93
Created October 19, 2021 10:20
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 Hkazanci93/19ad4175b0c6f3b65a177d621c3a8ce9 to your computer and use it in GitHub Desktop.
Save Hkazanci93/19ad4175b0c6f3b65a177d621c3a8ce9 to your computer and use it in GitHub Desktop.
Code to unzip and parse metadata.zip
redis_client.hset(f"article_id:{article_id}",mapping={'title': each_line['title']})
redis_client.hset(f"article_id:{article_id}",mapping={'publication_date':each_line['publish_time']})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment