The project consist in a little software app that get information from first 5 page of google search result with keywords as a google web search input. So this feature should be done by a Django method running through a background python thread of execution.
we are going to use Google Search API to get the information, and for others web search engines i have to thinks how will be done, i dont know if yahoo has apis for search
The app has three Django Models:
- first model: its called Engine
it's a python class for differents search engines, like Google Spain, Google EEUU, Yahoo Mexico, etc.
the class has two attributes:
-the name of search engine like for example Google Spain
- field for the url of the web search like for example [login to view URL]
- second model: its called Search
another one python class for the search objects, this model will be related with the django form, wich final users will be used to do the searchs.
The class has three attributes:
- the keywords: input for the search
- frecuency: the periods of time that the django method will do the searchs, this field will be a list with for example daily, weekly, monthly items.
- the engine: django model field related to previous class which is used for the searchs
- third model: Result
the last python class is for get the result of each search
has fourth attributes:
- field to realated with the search objects of the previous model
- the date in wich the django method do the search
- the url of the web page in wihch has been found the keywords introduced - the position of the previous url
There isnt has been in warning the google search ads result
For the apparience of the app don’t be worried because we are going to use a old template of a previous django project and when you run the django serve you will see the web page.
I’m going to push to Gihub a first version of the app as a start point for your developement I’m going to prepare for you the UML classes especification.
Libraries and API’s
- We are going to use google search api to do the queries with each corresponding object of the Django Search Model.
- Python library to do tasks through a python thread of execution, because the app will be online on a cloud server and will program searchs depends on frecuency field. I think that the library its called “Cron”
Obiously, ask me any questions or anything that you need or you dont understand.