Getting started:
Related tutorials:
- MySQL-CLI: https://www.youtube.com/playlist?list=PLfdtiltiRHWEw4-kRrh1ZZy_3OcQxTn7P
- Analyzing Business Metrics: https://www.codecademy.com/learn/sql-analyzing-business-metrics
Getting started:
Related tutorials:
from selenium import webdriver | |
import time | |
driver = webdriver.Chrome() | |
driver.set_window_size(1640, 1640) | |
driver.maximize_window() | |
driver.get("https://twitter.com/realDonaldTrump") | |
SCROLL_PAUSE_TIME = 0.5 | |
# Get scroll height |
JSX is a syntax extension for JavaScript. It was written to be used with React. JSX code looks a lot like HTML.
What does "syntax extension" mean?
In this case, it means that JSX is not valid JavaScript. Web browsers can't read it!
If a JavaScript file contains JSX code, then that file will have to be compiled. That means that before the file reaches a web browser, a JSX compiler will translate any JSX into regular JavaScript.
driver = start_driver(desired_capabilities={'app':'/Users/rakeshsukla/Downloads/ResyOS.app.zip', 'automationName':'XCUITest', 'deviceName':'iPad Air 2', 'platformName':'iOS', 'platformVersion':'10.2','command-timeout':'999999','newCommandTimeout':'999999'}, command_executor='http://localhost:4723/wd/hub')
pw = 8f5dabb833 Here's a rule that you need to know: you can not inject an if statement into a JSX expression.
The reason why has to do with the way that JSX is compiled. You don't need to understand the mechanics of it for now, but if you're interested then you can learn more here.
File Name | Coverage | Extra Comments |
---|---|---|
zebra stripes | are neat | $1 |
Donald Trump,Quotes | |
Sometimes by losing a battle you find a new way to win the war.,http://www.brainyquote.com/quotes/quotes/d/donaldtrum383171.html | |
I have a great relationship with the Mexican people.,http://www.brainyquote.com/quotes/quotes/d/donaldtrum717755.html | |
"You have to think anyway, so why not think big?",http://www.brainyquote.com/quotes/quotes/d/donaldtrum153798.html | |
"You know the funny thing, I don't get along with rich people. I get along with the middle class and the poor people better than I get along with the rich people.",http://www.brainyquote.com/quotes/quotes/d/donaldtrum414743.html | |
"Our politicians are stupid. And the Mexican government is much smarter, much sharper, much more cunning. And they send the bad ones over because they don't want to pay for them. They don't want to take care of them. Why should they when the stupid leaders of the United States will do it for them?",http://www.brainyquote.com/quotes/quotes/d/donaldtrum714310.html | |
"That's one of the nice things. I mean, part of |
from selenium import webdriver | |
from brain_quote_page import BrainQuotePage | |
import csv | |
browser = webdriver.Firefox() | |
type(browser) | |
browser.get('http://www.brainyquote.com/quotes/authors/d/donald_trump.html') | |
data = [] | |
while True: |
from selenium import webdriver | |
from hacker_news import HackerNews | |
import csv | |
def extract_title_email(): | |
data = [] | |
driver = webdriver.Firefox() | |
driver.get('https://news.ycombinator.com/') | |
element_list = driver.find_elements_by_css_selector(HackerNews.title_url) |
from selenium import webdriver | |
from go_django import GoDjango | |
from selenium.webdriver.support import expected_conditions as EC | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.common.by import By | |
from time import sleep | |
def download_videos(): | |
driver = webdriver.Firefox() |
from selenium import webdriver | |
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
import csv | |
from time import sleep | |
# set the scrolling behavior to down | |
DesiredCapabilities.FIREFOX["elementScrollBehavior"] = 1 |