Coder Social home page Coder Social logo

analyticsftw / pywebcrawler Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 63 KB

A Python POC project to crawl websites, list internal and external links on each site and establish site mapping of sorts

License: GNU General Public License v3.0

Python 86.16% TSQL 13.84%

pywebcrawler's Introduction

pyWebCrawler

A Python POC project to crawl websites, list internal and external links on each site and establish site mapping of sorts

Steps

  • Create database called webmap and create tables. Use webmap.sql to create database structure.

  • Update mysql_config.py with MySQL credentials

  • Run seed.py either as-is or add a URL from the command line, e.g.

    python seed.py https://github.com

Once you have enough entries in your sites table, run

python link_collect.py

This will crawl all sites in sites table that have not yet been scanned and create an an association between id_site1 (site where the external links were found) and id_site2 (each external site ID)

Optional: you can add an argument for maximum number of sites to scan, e.g. python link_collect.py 1000

Notes

Activity / errors can be logged in mysql.log and python.log using functions in mysql_functions.py and support_functions.py Logs can get sizeable pretty quick so purge them regularly.

pywebcrawler's People

Contributors

analyticsftw avatar

Stargazers

 avatar

Watchers

 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.