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
b9b4e7cf
Commit
b9b4e7cf
authored
Jul 04, 2017
by
Vasyl Bodnaruk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add router for celery schedule
parent
8052e7a0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
router.py
esi/esi/router.py
+1
-0
new_job.html
esi/templates/new_job.html
+4
-4
mobihealthnews.py
exa/exa/spiders/mobihealthnews.py
+0
-1
No files found.
esi/esi/router.py
View file @
b9b4e7cf
...
...
@@ -34,6 +34,7 @@ class EsiDatabaseRouter:
esi_apps
=
(
'webapp'
,
'scraper'
,
'django_celery_beat'
,
)
def
db_for_read
(
self
,
model
,
**
hints
):
...
...
esi/templates/new_job.html
View file @
b9b4e7cf
...
...
@@ -43,28 +43,28 @@
<div
class=
"form-group row"
>
<div
class=
"col-md-3"
>
<label
class=
"custom-control custom-radio"
>
<input
id=
"radio1"
name=
"interval"
value=
"
D
ay"
type=
"radio"
class=
"custom-control-input"
>
<input
id=
"radio1"
name=
"interval"
value=
"
d
ay"
type=
"radio"
class=
"custom-control-input"
>
<span
class=
"custom-control-indicator"
></span>
<span
class=
"custom-control-description"
>
Day
</span>
</label>
</div>
<div
class=
"col-md-3"
>
<label
class=
"custom-control custom-radio"
>
<input
id=
"radio2"
name=
"interval"
value=
"
W
eek"
type=
"radio"
class=
"custom-control-input"
>
<input
id=
"radio2"
name=
"interval"
value=
"
w
eek"
type=
"radio"
class=
"custom-control-input"
>
<span
class=
"custom-control-indicator"
></span>
<span
class=
"custom-control-description"
>
Week
</span>
</label>
</div>
<div
class=
"col-md-3"
>
<label
class=
"custom-control custom-radio"
>
<input
id=
"radio3"
name=
"interval"
value=
"
M
onth"
type=
"radio"
class=
"custom-control-input"
>
<input
id=
"radio3"
name=
"interval"
value=
"
m
onth"
type=
"radio"
class=
"custom-control-input"
>
<span
class=
"custom-control-indicator"
></span>
<span
class=
"custom-control-description"
>
Month
</span>
</label>
</div>
<div
class=
"col-md-3"
>
<label
class=
"custom-control custom-radio"
>
<input
id=
"radio4"
name=
"interval"
value=
"
F
inished"
type=
"radio"
<input
id=
"radio4"
name=
"interval"
value=
"
f
inished"
type=
"radio"
class=
"custom-control-input"
>
<span
class=
"custom-control-indicator"
></span>
<span
class=
"custom-control-description"
>
After finish
</span>
...
...
exa/exa/spiders/mobihealthnews.py
View file @
b9b4e7cf
...
...
@@ -36,7 +36,6 @@ class MobiHealthNewsSpider(scrapy.Spider):
def
parse
(
self
,
response
):
try
:
print
(
'SUKA'
)
rows
=
response
.
xpath
(
"..//div[contains(@class, 'group-left')]//div[contains(@class, 'views-row')]"
)
company
=
response
.
meta
[
'company'
]
for
i
in
rows
:
...
...
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