This is a made-up project that mimics some of the real world features that we work on. The goal of this project is to give you an introduction to the kinds of problems you'll be solving on this project.
- You should spend one hour on this.
- After the hour is up, please
push
all your changes to a branch called{your-name}
here on github. - Be prepared to present your features and discuss your code during an in-person interview.
- Accepts a search term on the command line
- Searches DuckDuckGo for given search term
- Parses content of search result page
- Returns parsed result in the following JSON format:
{
"search_term": "Provided search term",
"result_count": "Number of results returned",
"results": [
{
"title": "Title of the page in the search result",
"url": "URL of the page in the search result",
"desc": "Description of the page in the search result"
}
]
}
- Python 2.7 or Python 3 required
- Make sure your project is portable to another computer and list install dependencies in some way
Your script should run when one of the following is executed via command line:
$ python scrape.py wyncode
We rely heavily on unit tests, please add tests if you have extra time.