Skip to content

Instantly share code, notes, and snippets.

View unclepeach's full-sized avatar
🍑
Happy Coding ... ...

unclepeach

🍑
Happy Coding ... ...
View GitHub Profile
#facebook marketplace
from selenium import webdriver
from time import sleep
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from pymongo import MongoClient
class App:
<div class="_li">
<div id="pagelet_bluebar" data-referrer="pagelet_bluebar">
<div id="blueBarDOMInspector" class="_21dp">
<div class="_2t-8 _1s4v _2s1x">
<div class="_2t-a _26aw _50ti _2s1y" role="banner">
<div class="_2t-a _50tj">
<div class="_2t-a _4pmj _2t-d _50tk"><a class="accessible_elem skipto" href="#newsFeedHeading" target="newsFeedHeading" id="u_0_0">Skip to News Feed</a>
<div class="_2t-e">
<div class="_4kny">
<h1 class="_19ea" data-click="bluebar_logo"><a class="_19eb" data-gt="&#123;&quot;chrome_nav_item&quot;:&quot;logo_chrome&quot;&#125;" href="https://www.facebook.com/?ref=logo"><span class="_2md">Facebook</span></a></h1>
@andrewwatts
andrewwatts / request_time.py
Created March 10, 2012 19:33
urllib2 vs urllib3 vs requests
#!/usr/bin/env python2.7
import time
_URL = 'http://localhost/tmp/derp.html'
_NUMBER = 1000
def test_urllib2():
import urllib2