This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"_company": "#company", | |
"_email": "#email", | |
"_first_name": "#first_name", | |
"_industry": "#industry", | |
"_last_name": "#last_name", | |
"_phone": "#phone", | |
"_start_trial": "/html/body/main/section[2]/div/div[2]/form/div[6]/div[2]/button", | |
"_title": "#title" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM alpine:latest | |
MAINTAINER Aziz Kurbanov <[email protected]> | |
# up | |
RUN apk update | |
# Install bash | |
RUN apk add --no-cache --update-cache bash | |
# Install python |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.support.ui import WebDriverWait | |
import selenium.webdriver.support.ui as ui | |
import unittest | |
test_data = { | |
"data":{ | |
"bad_data": '''~!@#$%^&*()_+[]\{}|;':",./<>?''' | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Solution found @ http://stackoverflow.com/a/31803008: | |
from selenium import webdriver | |
import requests | |
driver = webdriver.Chrome() | |
fake_lat = "37.773972" | |
fake_long = "-122.431297" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.support.ui import WebDriverWait | |
def login(): | |
browser = webdriver.Firefox() | |
browser.get('https://instagram.com/accounts/login') | |
''' | |
When page loads the Login Form Container is not loaded immediately, that is why we need to do a smart wait, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>Media Keys to CTRL numbers</name> | |
<item> | |
<name>Media Controls to CTRL 7-9</name> | |
<appendix>* Play/Pause to CTRL+9</appendix> | |
<appendix>* Previous to CTRL+7</appendix> | |
<appendix>* Next to CTRL+8</appendix> | |
<identifier>remap.musiccontrols_to_CTRL_7_CTRL_9</identifier> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
# Please change per your desire: | |
Source_File_Name = str(raw_input("input the text file name: ")) | |
Destination = str(raw_input("input the destination directory: ")) #c:\\Python27\\Test_Data" | |
Word_Count = int(raw_input("how many words should be read into each file: ")) # 10 | |
How_Many_Files = int(raw_input("how many files you want to generate: ")) #100 | |
Dir_Divider = int(raw_input("how many files per directory: ")) #25 | |
Destination_File_Prefix = str(raw_input("input future file prefix: ")) #"WaP_" |