Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
REMitchell
GitHub Repository: REMitchell/python-crawling
Path: blob/master/3-Advanced-Crawlers/mysql-optional/website.py
164 views
1
class Website:
2
'Common base class for all articles/pages'
3
4
5
def __init__(self, id, name, url, searchUrl, resultListing, resultUrl, absoluteUrl, pageTitle, pageBody):
6
self.id = id
7
self.name = name
8
self.url = url
9
self.searchUrl = searchUrl
10
self.resultListing = resultListing
11
self.resultUrl = resultUrl
12
self.absoluteUrl=absoluteUrl
13
self.pageTitle = pageTitle
14
self.pageBody = pageBody
15