Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

prdx23/random-crossword-generater

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random Crossword Generator

This is a Python Flask App that crawls different sites for words and their definitions and then generates an many crosswords as possible in the given time, then displays the best one.

####To see the output click Here

How to run :

To run this app on your local machine :

  1. Clone this github

    $ git clone https://github.com/Arsh23/random-crossword-generater.git crossword-app
    $ cd crossword-app
  2. create new virtual environment

    $ sudo pip install virtualenv
    $ virtualenv venv
    $ source venv/bin/activate
    $ pip install -r requirements.txt
     ```
    
  3. To run the server:

    1. Excecute this command:

      $ uwsgi --http-socket 127.0.0.1:5000 --module app --callable app --enable-threads
    2. now the website can be accessed on 127.0.0.1:5000/

  4. To run just the crossword script without the server or interface:

    1. open python console :

      $ python
    2. run these commands :

      >>> from classes import *
      >>> import code as code
      >>> code.main()

Modules/Libraries used :

  • python 2.7
  • flask 0.10
  • beautifulsoup 4.4.1
  • requests 2.9.1
  • uWSGI 2.0.12
  • jquery 2.1.4
  • bootstrap 3.3.6

About

Flask app that generates a random crossword through web scraping

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published