Skip to content

Instantly share code, notes, and snippets.

@ihfazhillah
Last active May 26, 2018 15:47
Show Gist options
  • Save ihfazhillah/c57aa0c1b2bc36c8b31a4ce172d0cb65 to your computer and use it in GitHub Desktop.
Save ihfazhillah/c57aa0c1b2bc36c8b31a4ce172d0cb65 to your computer and use it in GitHub Desktop.
models for feedparser
# actually, i create it in one file :D
import mongoengine
mongoengine.connect("upwork", host="the host url that you got from mlab.com")
class Url(mongoengine.Document):
title = mongoengine.StringField()
url = mongoengine.StringField()
class Item(mongoengine.Document):
title = mongoengine.StringField()
guid = mongoengine.StringField()
description = mongoengine.StringField()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment