Closed DestroyerAlpha closed 5 years ago
Made necessary changes.
The text files will increase the size of the package and we cannot do this for every site. There must be some other way. ping @svp19
Agreed @akshatkarani. I explored the implementation of pyjokes #sourceofinspiration and they too render jokes as text from .py files. Explains why they have only a few.
An alternative would be to set up a server to store all quotes and return them through an API call defined in the package. However, if you do this, then the package won't work offline.
Maybe you could mix both approaches, providing an offline version that is limited and an optional online version that works well.
Agreed @akshatkarani. I explored the implementation of pyjokes #sourceofinspiration and they too render jokes as text from .py files. Explains why they have only a few.
An alternative would be to set up a server to store all quotes and return them through an API call defined in the package. However, if you do this, then the package won't work offline.
Maybe you could mix both approaches, providing an offline version that is limited and an optional online version that works well.
We can create offline package with the help of storing all authors and categories in csv file by making own dataset and then can get quotes according to author names and categories through csv file
7
A scrapper for https://www.quotery.com/ The text files are to match the input with the authors and categories from the website. The text files have been scrapped by me separately.