Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
esi-table-data
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esi-data-scrapping
esi-table-data
Commits
28ebd1b1
Commit
28ebd1b1
authored
Oct 10, 2017
by
Andrii Marynets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add formatting date
parent
107f62a6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cb.py
exa/exa/spiders/cb.py
+1
-1
mobihealthnews.py
exa/exa/spiders/mobihealthnews.py
+1
-1
No files found.
exa/exa/spiders/cb.py
View file @
28ebd1b1
...
...
@@ -34,7 +34,7 @@ class CbSpider(BaseSpider):
is_duplicate
=
False
for
i
in
rows
:
item
=
ExaItem
()
item
[
'date'
]
=
dateparser
.
parse
(
i
.
xpath
(
"./td[contains(@class, 'date')]/text()"
)
.
extract_first
())
.
date
(
)
item
[
'date'
]
=
self
.
format_date
(
i
.
xpath
(
"./td[contains(@class, 'date')]/text()"
)
.
extract_first
()
)
item
[
'title'
]
=
i
.
xpath
(
"./td/a/text()"
)
.
extract_first
()
item
[
'url'
]
=
i
.
xpath
(
"./td/a/@href"
)
.
extract_first
()
item
.
update
(
self
.
get_common_items
(
company
))
...
...
exa/exa/spiders/mobihealthnews.py
View file @
28ebd1b1
...
...
@@ -24,7 +24,7 @@ class MobiHealthNewsSpider(BaseSpider):
is_duplicate
=
False
for
i
in
rows
:
item
=
ExaItem
()
item
[
'date'
]
=
dateparser
.
parse
(
i
.
xpath
(
".//span/span[contains(@class, 'day_list')]/text()"
)
.
extract_first
())
.
date
(
)
item
[
'date'
]
=
self
.
format_date
(
i
.
xpath
(
".//span/span[contains(@class, 'day_list')]/text()"
)
.
extract_first
()
)
item
[
'title'
]
=
i
.
xpath
(
".//span/a/text()"
)
.
extract_first
()
item
[
'description'
]
=
i
.
xpath
(
".//div[contains(@class, 'views-field views-field-body')]/span/text()"
)
.
extract_first
()
item
[
'url'
]
=
'http://www.mobihealthnews.com'
+
i
.
xpath
(
".//span/a/@href"
)
.
extract_first
()
...
...
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