Friday, January 6, 2017

Understanding Python

I wanted to understand how to build a search engine. Daniel Shiffman implements his TFIDF index in JavaScript. Arden Dertat implements his search engine with TFIDF in Python.

I want to implement everything in JavaScript. To use Arden's code, it might be useful to learn Python. I found "How to Learn Python in Five Minutes - Daniel Moniz" on YouTube. ( .

His code gives me the idea to try to implement the waypaver scraping script in python . I don't need it in Python, but such an exercise would teach me a bit about python in addition to making refactoring the PHP script to a more OOP scheme more interesting. Python is all about objects. Everything in Python is an object. If I wanted to go further, he mentioned coderbyte ( which offers some challenges as well as asking and answering questions on stackoverflow.

Resolving the programmers page at ( leads me to a resource at (  I even found a tutorial about a web crawler if I want it (

Looking at my scraper tells me I need to retrieve web pages. The Requests gives me some idea: . If I believe the good words about it, it may be a good idea.

Doing this would also lead me to understand the code in SWAP (if I care to understand it).

No comments:

Post a Comment