We were required to build a web-app that needed to have the following features : Suggest itineraries for tourists based on data available on the sites above or from any other source. Best attractions in a city. Paths and expected time required to visit each location. Suggested duration of visit Pictures of attractions The user […]
Posts Categorized / Python
Once the peer list has been received from the trackers, its time to connect to these peers and initiate the data exchange. Core Class The Core Class is responsible for managing all the connections with the peers. The connections are managed using the Twisted Framework. The Twisted Framework has uses an Asynchronous Event Driven Engine. […]
The BitTorrent Protocol is a peer to peer protocol where the file is shared among numerous peers. The file being shared is broken into numerous pieces and these pieces are shared among peers. Each peer can have some or all pieces of the file. A peer can connect to multiple other peers to ask for […]
The following script downloads all posts (non gif) liked by a user on 9gag. The post images are downloaded in the local directory (same as script). The captions for each image is also downloaded and stored in a text file against the file name of the post downloaded. The script can resume/update downloaded posts with […]
Recently in our Machine Learning Practical Examination, our group was asked to extract Tweets related to the recent election and predict which Party had the highest probability for winning. The first step for this was to extract information from Twitter. I was familiar with various Twitter API Libraries available for python. But I wanted to […]
Pygments is a generic syntax highlighter for general use in all kinds of software such as forum systems, wikis or other applications that need to prettify source code.