Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
REMitchell
GitHub Repository: REMitchell/python-crawling
Path: blob/master/3-Advanced-Crawlers/mysql-optional/content.py
164 views
1
class Content:
2
'Common base class for all articles/pages'
3
4
5
def __init__(self, id, topicId, siteId, title, body, url):
6
self.id = id
7
self.topicId = topicId;
8
self.siteId = siteId;
9
self.title = title;
10
self.body = body;
11
self.url = url;
12
13