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
92 views
1 answer
Django model plural
Python
10 votes
92 views
2 answers
Day difference between two dates in python
Python
1 vote
94 views
2 answers
Python line break inside string
Python
0 vote
94 views
1 answer
Edit models in django admin
Python
2 votes
98 views
1 answer
Python find max in list of dict by value
Python
0 vote
99 views
1 answer
Python output text
Python
0 vote
114 views
1 answer
Mehrzeiliges kommentar python
Python
1 vote
91 views
1 answer
Flatten json python
Python
0 vote
109 views
1 answer
Dataframe string find count
Python
21 votes
91 views
2 answers
How do a plot on matplotlib python
Python
Share