Skip to content

kmilas/code_crawler

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%