Coder Social home page Coder Social logo

links-extractor's Introduction

Travis-CI-Build License: GPL 3.0

Links-Extractor

Extract all internal and external links from a URL in Python.

  • To run type:

% python3 extractor.py [http://url1] [https://url2] and so on..

  • To save the output to a file you can do:

% python3 extractor.py https://com.puter.tips > out.txt

Find how the script works and the complete tutorial here -- http://com.puter.tips/2016/12/extract-all-internal-and-external-links.html

For more information/bug report you can contact me on devharsh [at] live [dot] in or com [at] puter [dot] tips.

You may also find this repository useful for SEO -- https://github.com/com-puter-tips/SEO-Analysis

Cite

Either:

  @online{DevharshLinks,
    author = {Devharsh Trivedi},
    title = {Links-Extractor Source Repository},
    howpublished = {GitHub},
    year = {2016},
    url = {https://github.com/com-puter-tips/Links-Extractor},
  }

Or if you do not have @online support:

  @misc{DevharshLinks,
    author = {Devharsh Trivedi},
    title = {Links-Extractor Source Repository},
    howpublished = {GitHub},
    year = {2016},
    note = {\url{https://github.com/com-puter-tips/Links-Extractor}},
  }

links-extractor's People

Contributors

devharsh avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

links-extractor's Issues

BUG found: unicode issue.

Can you add a feature to output to a file instead of directly in the console window? I do not want to end up as it creates new lines, the oldest lines get erased due to the buffer limits. I did try using >>Outputfile.txt, but that resulted the file containing this:



https://www.uchinokomato.me/chara/show/154058
---------------------


18 internal links found:


'charmap' codec can't encode characters in position 14-23: character maps to <undefined>

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.