Skip to content

Instantly share code, notes, and snippets.

View tinvaan's full-sized avatar
🏠
Working from home

Harish Navnit tinvaan

🏠
Working from home
View GitHub Profile
@tinvaan
tinvaan / scraper.py
Created January 15, 2017 20:14
web scraping example in python
#! /usr/bin/env python
import os, sys, dropbox
from bs4 import BeautifulSoup
from urllib.request import urlopen
errorStrings = []
def formulateErrorStrings(tin):
errorStrings.append('Dealer Not Found for the entered TIN ' + tin)
#! /bin/bash
# Qt unsigned integer types to STL unsigned integer types
sed -e 's/quint64/uint64_t/g' $* -i &&
sed -e 's/quint32/uint32_t/g' $* -i &&
sed -e 's/quint16/uint16_t/g' $* -i &&
sed -e 's/quint8/uint8_t/g' $* -i &&
# Qt integer types to STL integer types
sed -e 's/qint64/int64_t/g' $* -i &&