Toggle navigation
Toggle navigation
This project
Loading...
Sign in
최원석
/
2021-1-database-project
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
1seok2
2021-03-01 21:43:22 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
78e9c3f88e3a092a04fe679ee0a7bf529bfb4c25
78e9c3f8
1 parent
d6ef3f29
add opening crawler
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
crawler/crawler_instagram.py
crawler/crawler_instagram.py
View file @
78e9c3f
import
selenium
from
selenium
import
webdriver
BASE_URL
=
"https://instagram.com"
def
crawler_instagram
(
insta_id
):
driver
=
webdriver
.
Chrome
(
executable_path
=
'./chromedriver'
)
URL
=
"
%
s/
%
s"
%
(
BASE_URL
,
insta_id
)
driver
.
get
(
url
=
URL
)
sleep
(
10
)
driver
.
close
()
if
__name__
==
"__main__"
:
print
(
"-"
*
60
)
print
(
" crawler is start"
)
print
(
"-"
*
60
)
crawler_instagram
(
"__re.mind.er__"
)
...
...
Please
register
or
login
to post a comment