Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mason-today-web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
8
Issues
8
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SRCT
mason-today-web
Commits
3bb91ef1
Commit
3bb91ef1
authored
Dec 06, 2017
by
Landon DeCoito
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
starting cleanup function and further defined Event class
parent
5b5af7fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
pscripts/parscript.py
pscripts/parscript.py
+14
-6
No files found.
pscripts/parscript.py
View file @
3bb91ef1
print
"and we begin"
class
e
vent
:
def
__init__
(
self
):
self
.
__name
=
"nameplaceholder"
self
.
__description
=
"contentplaceholder"
class
E
vent
:
def
__init__
(
self
,
entryTag
):
#where var entrySoup is a specific event tag
self
.
__name
=
entryTag
.
find
(
'title'
).
string
self
.
__description
=
entryTag
.
find
(
'content'
).
string
self
.
__time
=
"timeplaceholder"
self
.
__date
=
"dateplaceholder"
self
.
__location
=
"locationplaceholder"
def
__str__
(
self
):
return
self
.
__name
+
": "
+
self
.
__description
+
"
\n\n
"
def
cleanup
(
string
):
ctr
=
0
while
ctr
<
len
(
string
):
from
bs4
import
BeautifulSoup
import
requests
...
...
@@ -32,6 +38,8 @@ for item in entries:
print
titles
,
"
\n
"
events
=
[]
for
item
in
entries
:
print
item
.
find
(
'content'
).
prettify
(),
"
\n
"
events
.
append
(
Event
(
item
))
print
events
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment