devmingle
Home
Categories
Popular Codes
Articles
/
Python
/
Sdf
Sdf
Sdf
from selenium import webdriver from selenium.webdriver.common.keys import Keys from time import sleep class InstagramBot: def __init__(self, username, password): self.username = username self.password = password self.driver = webdriver.Chrome('C:\Program Files (x86)\chromedriver.exe') def CloseBrowser(self): self.driver.close def Login(self): driver = self.driver driver.get('https://instagram.com/') sleep(1) username_input = driver.find_element_by_xpath('//input[@name="username"]') username_input.send_keys(self.username) sleep(2) password_input = driver.find_element_by_xpath('//input[@name="password"]') password_input.send_keys(self.password) sleep(1) button = driver.find_element_by_xpath('//button[@type="submit"]') button.click() bot1 = InstagramBot() bot1.Login()
0
Source:
pastep.com
Sdf
App\Models\Student Object ( [connection:protected] => mysql [table:protected] => students [primaryKey:protected] => id [keyType:protected] => int [incrementing] => 1 [with:protected] => Array ( ) [withCount:protected] => Array ( ) [preventsLazyLoading] => [perPage:protected] => 15 [exists] => 1 [wasRecentlyCreated] => [escapeWhenCastingToString:protected] => [attributes:protected] => Array ( [s_id] => 1 [s_name] => Amit Rathod [s_phone] => 76006989898 [s_city] => Delhi [created_at] => [updated_at] => ) [original:protected] => Array ( [s_id] => 1 [s_name] => Amit Rathod [s_phone] => 76006989898 [s_city] => Delhi [created_at] => [updated_at] => ) [changes:protected] => Array ( ) [casts:protected] => Array ( ) [classCastCache:protected] => Array ( ) [attributeCastCache:protected] => Array ( ) [dates:protected] => Array ( ) [dateFormat:protected] => [appends:protected] => Array ( ) [dispatchesEvents:protected] => Array ( ) [observables:protected] => Array ( ) [relations:protected] => Array ( ) [touches:protected] => Array ( ) [timestamps] => [hidden:protected] => Array ( ) [visible:protected] => Array ( ) [fillable:protected] => Array ( ) [guarded:protected] => Array ( [0] => * ) ) 1
0
Share
Similar codes
0 vote
42 views
1 answer
Get parameter value dynamo python
Python
1 vote
114 views
1 answer
Python GOOGLE_APPLICATION_CREDENTIALS
Python
3 votes
86 views
1 answer
Split string into array every n characters python
Python
1 vote
82 views
1 answer
•ImportError: cannot import name 'tf_utils'
Python
0 vote
95 views
1 answer
Open chrome in pyhton
Python
0 vote
132 views
1 answer
Pycharm shortcut to create methos
Python
0 vote
81 views
1 answer
AttributeError: 'Engine' object has no attribute 'runandwait' python
Python
0 vote
103 views
1 answer
Reverse relationship in django for one to one field for usage in Django rest serializer
Python
4 votes
81 views
2 answers
Append to pythonpath
Python
0 vote
42 views
0 answer
Python
Share