Giter Site home page Giter Site logo

webscrapper's Introduction

PLEASE READ :)

With the last commit I changed the code structure and added multiprocessing. Pros are now I got rid of the GLI and code is (I think) better structured and faster. Cons are It gave me a headache trying to change the old code(Threads => Processes) so I ended up starting from scratch(recycling some stuff such as ArgumentParser class) and I haven't made a Data Parser as good as I'd like to, but felt like this was a good enough change to commit it :)

WebScrapper

Basic Python web scrapper which allows enumerating routes on a website and extract data using regex. Outputs found data (routes and regex matches) on a json format.

Setup

Clone the repository

    sudo git clone https://github.com/Gurguii/WebScrapper

Get into the project's directory

    cd WebScrapper

Install requirements (bs4 and requests libraries)

    pip3 install -r requirements.txt

Usage

    python3 wscrap.py <options> <target>

Note: the -wl/--wordlist option is mandatory

Options

-t / --target <string,file,csv> - Target/s

-wl / --wordlist - Wordlist to use

-h / --help - Prints help message(not properly made yet) and exits.

-p / --port - Sets target port, default 80

-ps / --processes - Sets amount of processes, default 2

-ext / --extensions <comma,separated,extensions> - Do an additional /. request for each extension

-r / --rules <string,file,csv> - Whenever a valid status code is gotten from a path, get content matching any of the rules in given file

-sc / --status-codes <comma,separated,ints> - Sets valid status codes, default 200 and 301

-ssl / --ssl - Do https requests (This does not change port to 443)

webscrapper's People

Contributors

gurguii avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.