Showing
1 changed file
with
23 additions
and
0 deletions
1 | +import selenium | ||
2 | +from selenium import webdriver | ||
3 | + | ||
4 | +BASE_URL = "https://instagram.com" | ||
5 | + | ||
6 | + | ||
7 | +def crawler_instagram(insta_id): | ||
8 | + driver = webdriver.Chrome(executable_path='./chromedriver') | ||
9 | + | ||
10 | + URL = "%s/%s" % (BASE_URL, insta_id) | ||
11 | + driver.get(url=URL) | ||
12 | + | ||
13 | + sleep(10) | ||
14 | + | ||
15 | + driver.close() | ||
16 | + | ||
17 | + | ||
18 | +if __name__ == "__main__": | ||
19 | + print("-" * 60) | ||
20 | + print(" crawler is start") | ||
21 | + print("-" * 60) | ||
22 | + | ||
23 | + crawler_instagram("__re.mind.er__") | ... | ... |
-
Please register or login to post a comment