Skip to content

Instantly share code, notes, and snippets.

View vajrasar's full-sized avatar

Vajrasar Goswami vajrasar

View GitHub Profile
@vajrasar
vajrasar / add_jetpack_infinite.php
Last active July 13, 2017 19:57 — forked from anonymous/add_jetpack_infinite.php
Steps to add Infinite Scroll (Jetpack) to a Genesis Child Theme running on Genesis 2.0 + HTML 5. Code goes in functions.php
<?php
/*
To add Infinite Loop Module provided in Jetpack wordpress Plugin, in Genesis driven site.
*/
/*
Step 1. Install Jetpack Plugin
*/
######################
#Script1 : scraper.py
######################
import urllib2
import datetime
def main():
ph = urllib2.ProxyHandler({'http': 'http://xxx:xxxx@netmon.iitb.ac.in:80'})
opener = urllib2.build_opener(ph)