Archives
Trending
Support
Login
clear text
XML
Django
JavaScript
MATLAB
C
C++
C#
Python
SQL
Shell
Bash
Markdown
YAML
JSON
HTML
CSS
PHP
Java
Ruby
Go
Rust
Swift
Kotlin
Arduino
TypeScript
Perl
Autohotkey
Lua
SQF
R
Scala
Haskell
Groovy
Dart
Clojure
VB.NET
Objective-C
PowerShell
Bash
CoffeeScript
Verilog
#!/usr/bin/python3 #sudo apt install python-selenium unzip xvfb libxi6 libgconf-2-4 default-jdk from selenium import webdriver #Start Headless from selenium.webdriver.chrome.options import Options options = Options() options.headless = True driver = webdriver.Chrome(options=options) #End Headless driver = webdriver.Chrome() driver.get('https://filmsbykris.com') source=driver.page_source print(source) search_box = driver.find_element_by_id("search") search_box.send_keys("Linux") #First Video Link item = driver.find_element_by_class_name("portfolio-item") item.click() #Array of elements videos = driver.find_elements_by_class_name("portfolio-item") video[4].click() search_box.clear() #list all buttons buttons = driver.find_elements_by_class_name("btn") for b in buttons: b.get_attribute('innerHTML') #Using CSS selectors menu_item = driver.find_elements_by_css_selector(".page-scroll") for i in menu_item: i.get_attribute('innerHTML') #Get link by Link Text links = driver.find_elements_by_partial_link_text("LBRY") links[0].get_attribute('innerHTML') links[0].get_attribute('src') links[0].get_attribute('href') #get Text of elements a=driver.find_elements_by_tag_name("a") for t in a: t.text
Mark as private (unlisted)
for 30 minutes
for 6 hours
for 1 day
for 1 week
for 1 month
for 1 year
everlasting (like CCCP)