This file contains hidden or 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
#!/usr/bin/python3 | |
import re | |
from selenium import webdriver | |
list_stores = [ | |
"https://www.auchandrive.fr/drive/mag/update-924", | |
] | |
list_products = [ | |
"https://www.auchandrive.fr/catalog/coca-cola-zero-1l-P762493", |
This file contains hidden or 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
# Centos 7 | |
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
yum-config-manager --enable epel | |
yum install -y vim wget unzip git python34 python34-pip # python34-devel | |
mkdir /opt/chromedriver | |
wget https://chromedriver.storage.googleapis.com/2.42/chromedriver_linux64.zip | |
unzip chromedriver_linux64.zip -d /opt/chromedriver | |
rm -f chromedriver_linux64.zip | |
mv /opt/chromedriver/chromedriver /opt/chromedriver/chromedriver-2.42 |
This file contains hidden or 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
#!/usr/bin/python2 | |
from selenium import webdriver | |
chrome_options = webdriver.ChromeOptions() | |
chrome_options.add_argument('--headless') | |
chrome_options.add_argument('--no-sandbox') | |
driver = webdriver.Chrome('chromedriver', chrome_options=chrome_options, service_args=['--verbose', '--log-path=/tmp/chromedriver.log']) | |
driver.get('https://python.org') |
This file contains hidden or 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
------------------------------------------------------------ | |
Wordpress | |
------------------------------------------------------------ | |
Créer un [Shortcode] pour lister les articles en brouillon | |
------------------------------------------------------------ | |
<?php | |
function shortcode_brouillons($param) { |
This file contains hidden or 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
## Configure eth0 | |
# | |
# vi /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet | |
BOOTPROTO=static |
NewerOlder