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
9d27526e
Commit
9d27526e
authored
7 years ago
by
Vasyl Bodnaruk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add function for make company in CB spider
parent
8bdee0a5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
company_maker.py
exa/exa/helpers/company_maker.py
+9
-0
No files found.
exa/exa/helpers/company_maker.py
View file @
9d27526e
...
...
@@ -20,6 +20,8 @@ class CompanyMaker:
self
.
_make_list_for_tc
()
elif
media
==
'aitop'
:
self
.
_make_list_for_aitop
()
elif
media
==
'cb'
:
self
.
_make_list_for_cb
()
def
get_companies
(
self
):
return
self
.
companies
...
...
@@ -49,3 +51,10 @@ class CompanyMaker:
self
.
companies
.
append
(
Company
(
i
.
id
,
'https://aitopics.org/search?view=&filters=&sort=score+desc&q='
+
i
.
name
,
129
,
2
,
2
,
i
.
name
))
def
_make_list_for_cb
(
self
):
for
i
in
self
.
in_site
:
name
=
i
.
name
.
replace
(
' '
,
'-'
)
.
replace
(
'.'
,
'-'
)
self
.
companies
.
append
(
Company
(
i
.
id
,
'http://www.crunchbase.com/organization/{}/press/'
.
format
(
name
),
None
,
2
,
2
,
i
.
name
))
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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