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
# r'https://pypi.python.org/pypi/selenium | |
#from bs4 import BeautifulSoup | |
from selenium import webdriver | |
import os, time, errno, sys | |
#import lxml | |
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
<!--[if IE 9 ]><html lang="en" class="ie-9 ie"><![endif]--><!--[if IE 10 ]><html lang="en" class="ie-10 ie"><![endif]--><!--[if IE 11 ]><html lang="en" class="ie-11 ie"><![endif]--><!--[if gt IE 9]><!--> | |
<!DOCTYPE html> | |
<html class="wf-proximanova-n7-active wf-proximanova-n8-active wf-proximanova-n6-active wf-proximanova-n4-active wf-proximanova-n3-active wf-active" lang="en"> | |
<!--<![endif]--> | |
<head> | |
<meta charset="utf-8"> | |
<meta content="ie=edge" http-equiv="x-ua-compatible"> | |
<title>Analysis | ESIOS electricity · data · transparency</title> | |
<meta content="width=device-width, initial-scale=1" name="viewport"> | |
<link href="/apple-touch-icon-57x57.png" rel="apple-touch-icon" sizes="57x57"> |
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
# r'https://pypi.python.org/pypi/selenium | |
from bs4 import BeautifulSoup | |
from selenium import webdriver | |
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities | |
import os, time, errno, sys | |
import lxml | |
def main(): | |
if len(sys.argv) < 2: | |
sys.exit(0) |
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
#!/bin/sh | |
unset SESSION_MANAGER | |
unset DBUS_SESSION_BUS_ADDRESS | |
exec /etc/X11/xinit/xinitrc | |
gnome-session --session=gnome-classic & | |
OS=`uname -s` | |
if [ $OS = 'Linux' ]; then | |
case "$WINDOWMANAGER" in | |
*gnome*) |
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
## Supported server options to pass to vncserver upon invocation can be listed | |
## in this file. See the following manpages for more: vncserver(1) Xvnc(1). | |
## Several common ones are shown below. Uncomment and modify to your liking. | |
## | |
# securitytypes=vncauth,tlsvnc | |
# desktop=sandbox | |
# geometry=2000x1200 | |
# localhost | |
# alwaysshared |
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
[Desktop Entry] | |
Name=Xsession | |
Exec=/etc/X11/Xsession |
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 glob | |
toglob = r'B:\TOMERGE' | |
files = glob.glob(toglob+'\*') | |
import pandas as pd | |
frame = pd.DataFrame() | |
list_ = [] | |
for file_ in files: | |
df = pd.read_csv(file_,index_col=None, header=0,encoding='utf-8', low_memory=False, error_bad_lines=False ) |
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 sys, os | |
import pandas as pd | |
import pymongo | |
import json | |
import glob | |
from pymongo import MongoClient | |
fullpath_of_file = r'B:\all.csv.xlsx' | |
#files = glob.glob(r'B:\folderoffiles*') |
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 pandas as pd | |
import csv | |
import pyodbc # http://mkleehammer.github.io/pyodbc/ | |
import sys, os | |
USERNAME = 'sa' | |
PASSWORD = 'password' | |
SERVER = 'server' | |
DATABASE = '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
import os, sys | |
from bs4 import BeautifulSoup | |
import lxml | |
from pyquery import PyQuery as pq | |
import tldextract | |
import html5lib | |
import redis | |
r = redis.StrictRedis( |
OlderNewer