Skip to content

Commit cbe1441

Browse files
committed
Some little ddjustments for PEP8
1 parent ba10650 commit cbe1441

File tree

3 files changed

+81
-74
lines changed

3 files changed

+81
-74
lines changed

crawlerClasses.py renamed to crawler_classes.py

+12-12
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# -*- coding: utf-8
2-
#
32
# @mtrpires - http://github.com/mtrpires
43

4+
55
class MediaObject(object):
66
"""
77
The MediaOutletLink contains the information regarding
@@ -11,7 +11,7 @@ class MediaObject(object):
1111
def __init__(self, title, date, desc, url, kind):
1212
"""
1313
Initiates the object with the direct link to the story
14-
and the date it was published. Information comes from the
14+
and the date it was published. Information comes from the
1515
Google Search.
1616
"""
1717
self.title = title
@@ -44,13 +44,13 @@ def getKind(self):
4444
# """
4545
# def __init__(self, kind, name, url):
4646
# """
47-
# Initiates the object with kind, name and URL.
47+
# Initiates the object with kind, name and URL.
4848
# All params are strings.
4949
# """
5050
# self.kind = kind
5151
# self.name = name
5252
# self.url = url
53-
#
53+
#
5454
# def getKind(self):
5555
# """
5656
# Gets the kind of the media outlet.
@@ -59,7 +59,7 @@ def getKind(self):
5959
# portal, revista, jornal, blog
6060
# """
6161
# return self.kind
62-
#
62+
#
6363
# def getName(self):
6464
# """
6565
# Gets the name of the media outlet.
@@ -68,37 +68,37 @@ def getKind(self):
6868
# Folha de S.Paulo, Estado de S.Paulo, Nassif, Simon.
6969
# """
7070
# return self.name
71-
#
71+
#
7272
# def getURL(self):
7373
# """
7474
# Gets the URL of the media outlet.
7575
# """
7676
# return self.url
77-
#
77+
#
7878
# def setKind(self, kind):
7979
# """
8080
# Sets the kind of the media outlet.
8181
# Expected values are:
8282
# portal, revista, jornal, blog
8383
# """
84-
#
84+
#
8585
# self.kind = kind
86-
#
86+
#
8787
# def setName(self, name):
8888
# """
8989
# Sets the name of the media outlet.
9090
# Expected values are:
9191
# Terra, G1, UOL, Veja, IstoÉ, Época, Folha, O Globo,
9292
# Folha de S.Paulo, Estado de S.Paulo, Nassif, Simon.
93-
# """
93+
# """
9494
# self.name = name
95-
#
95+
#
9696
# def setURL(self, url):
9797
# """
9898
# Sets the URL of the media outlet.
9999
# """
100100
# self.url = url
101-
#
101+
#
102102
# def __repr__(self):
103103
# """
104104
# Shows useful information about the Object when called from prompt

0 commit comments

Comments
 (0)