Skip to content

Latest commit

 

History

History
48 lines (33 loc) · 1.21 KB

File metadata and controls

48 lines (33 loc) · 1.21 KB

code_crawler

A simple code crawler to avoid visiting stackoverflow, w3schools, tutorialspoint, geeksforgeeks, pyp, askubuntu and mathworks ever again. On the rare ocasion its necessary just click the available link.

Image of crawler

Clone

Clone the repository locally by entering the following command:

git clone https://github.com/johneliades/code_crawler.git

Or by clicking on the green "Clone or download" button on top and then decompressing the zip.

Run

Install the missing libraries:

pip install -r requirements.txt

and then you can run:

python code_crawler.py "any possible programming question"

or:

python code_crawler.py any possible programming question

How it works

After google searching your question and taking the first 7(by default) sites into account, the script visits the site if it belongs in the aforementioned sites. It then takes the accepted answer's code block, and uses the appropriate lexer according to your keywords for the syntax highlighting, giving you the answer in an organised way.

Author

Eliades John - Developer - Github