Wednesday, June 4, 2014
Python multi threading vs multi processing
Posted by
Abu Zahed Jony
at
1:45 AM
0
comments
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Labels:
MultiProcess,
MultiThread,
Thread
Python Requests: HTTP for Humans
Python requests module provides very interactive way to access web content via
proper HTTP protocol.
Installation:
Here is the installation manual. You can also install using pip :
pip install requests
Here is the installation manual. You can also install using pip :
pip install requests
import requests r = requests.get('https://api.github.com/user', auth=('user', 'pass')) print r.status_code print r.headers['content-type'] print r.encoding print r.text print r.json()
Output:
200 'application/json; charset=utf8' 'utf-8' u'{"type":"User"...' {u'private_gists': 419, u'total_private_repos': 77, ...}
Posted by
Abu Zahed Jony
at
1:30 AM
0
comments
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Labels:
Crawler,
HTTP request,
Scrapper,
Url Fetch,
Url Request Response
Python webbrowser
import webbrowser url ='https://docs.python.org' webbrowser.open(url, new=0, autoraise=True)
Output:
This code will open url to existing web browser and raised the window.
Posted by
Abu Zahed Jony
at
1:08 AM
0
comments
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

Labels:
web browser
Subscribe to:
Posts (Atom)