Skip to content

Instantly share code, notes, and snippets.

Eastkap Eastkap

View GitHub Profile
View index.js
// We'll use Puppeteer is our browser automation framework.
const puppeteer = require('puppeteer-core');
const chromeLauncher = require('chrome-launcher');
const req = require('./req')
const request = require('request-promise-native')
const profile = require('./profiles')[0]
const util = require('util')
const devices = require('puppeteer/DeviceDescriptors');
const iPhone = devices['iPhone X landscape'];
View getimg.py
import sys, re, csv, requests, time, random
from bs4 import BeautifulSoup
if sys.version_info[0] == 3:
from urllib.request import *
else:
# Not Python 3 - today, it is most likely to be Python 2
# But note that this might need an update when Python 4
# might be around one day
from urllib import urlopen
View getimg.py
import sys, re, csv, requests
from bs4 import BeautifulSoup
if sys.version_info[0] == 3:
from urllib.request import urlopen
else:
# Not Python 3 - today, it is most likely to be Python 2
# But note that this might need an update when Python 4
# might be around one day
from urllib import urlopen
@Eastkap
Eastkap / vroom_betatst.py
Last active Jan 16, 2017
scrapping vroom vroom and making data to base de donnees
View vroom_betatst.py
import sys, re
from bs4 import BeautifulSoup
def fnum(s):
for i in range(len(s)):
if (s[i].isdigit()):
return i
You can’t perform that action at this time.