Code Monkey home page Code Monkey logo

xtr's Introduction

Xtr - A tool to crawl and parse web pages

This tool will read html from a page or a string and show you the links.

To use this you have to have at least .NET Core 2.1, which has global tools.

To download it, go here and install the .NET Core SDK. Don't install the runtime, as it will not be enough to run global tools.

Synopsis

xtr <url>

For example:

xtr https://www.bing.com/search?q=lambda3

Sample output:

Links:
Lambda3,https://www.lambda3.com.br/
Os Lambdasequipe,https://www.lambda3.com.br/pessoas
(...)

Install

dotnet tool install -g xtr

Parameters

This tool accepts parameters. You call it like so:

  xtr [options] -
  xtr [options] <urlorcontent>

Run xtr with --help to see possible options. Here we document a few:

  • --output=<file> - File path where to save the output, if absent output is sent to stdout
  • --use-browser - Use a browser to fetch the contents [default: false]
  • --include-empty-links - Include links without href or value [default: false]
  • --include-hash-links - Include links with # on href [default: false]
  • --include-rel-links - Include rel links in the header [default: false]
  • --include-js-links - Include links with 'javascript:' on href [default: false]

Testing install during development

Just cd to src/xtr and run .\pack.ps1 or dotnet pack -C Release -o ../nupkg.

Then cd to src/nupkg and run dotnet install tool -g xtr.

Maintainers/Core team

Contributors can be found at the contributors page on Github.

Contact

Use Twitter.

License

This software is open source, licensed under the Apache License, Version 2.0. See LICENSE.txt for details. Check out the terms of the license before you contribute, fork, copy or do anything with the code. If you decide to contribute you agree to grant copyright of all your contribution to this project, and agree to mention clearly if do not agree to these terms. Your work will be licensed with the project at Apache V2, along the rest of the code.

xtr's People

Contributors

dependabot-support avatar sergiorgiraldo avatar giggio avatar

Watchers

James Cloos 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.