-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinfos.py
42 lines (39 loc) · 1.32 KB
/
infos.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"""xpaths
"""
# username input box
username_box = '//input[@name="username"]'
# password input box
password_box = '//input[@name="password"]'
# save info pupup (occours ~45% of time)
save_info_popup = '//*[contains(text(),"Save Info")]'
# like button (heart)
like = '//span[@aria-label="Like"]'
# comment button
comment_button = '//span[@aria-label="Comment"]'
# comment box
comment_box = '//*[@aria-label="Add a comment…"]'
# new post button
new_post_button = '//span[@aria-label="New Post"]'
# following button
following_button = '//button[contains(text(),"Following")]'
# unfollow button
unfollow_button = '//button[contains(text(),"Unfollow")]'
# follow button
follow_button = '//button[contains(text(),"Follow")]'
"""urls
"""
# instagram login url (base)
ig_log_page = 'https://instagram.com/accounts/login/'
# base url for tags
ig_tags_url = 'https://www.instagram.com/explore/tags/'
"""webdriver focused
"""
# js scroll to bottom of page
scroll = "window.scrollTo(0, document.body.scrollHeight);"
# for the profile necessary to enable mobile view
user_agent = "Mozilla/5.0 (iPhone; U; CPU iPhone OS 3_0 like Mac OS X; en-us) \
AppleWebKit/528.18 (KHTML,like Gecko) Version/4.0 Mobile/7A341 Safari/528.16"
"""hashtag sets
"""
# default
default = ['callofduty', 'codtopplays', 'modernwarfare', 'clipagame', 'killstreak']