Wget
Retrieve a web page (ad-hoc or from a list), turn it into markdown, and display in Sublime
Details
Installs
- Total 1K
- Win 550
- Mac 307
- Linux 183
Jan 15 | Jan 14 | Jan 13 | Jan 12 | Jan 11 | Jan 10 | Jan 9 | Jan 8 | Jan 7 | Jan 6 | Jan 5 | Jan 4 | Jan 3 | Jan 2 | Jan 1 | Dec 31 | Dec 30 | Dec 29 | Dec 28 | Dec 27 | Dec 26 | Dec 25 | Dec 24 | Dec 23 | Dec 22 | Dec 21 | Dec 20 | Dec 19 | Dec 18 | Dec 17 | Dec 16 | Dec 15 | Dec 14 | Dec 13 | Dec 12 | Dec 11 | Dec 10 | Dec 9 | Dec 8 | Dec 7 | Dec 6 | Dec 5 | Dec 4 | Dec 3 | Dec 2 | Dec 1 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Mac | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Linux | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Readme
- Source
- raw.githubusercontent.com
Sublime Wget
A plugin for Sublime Text 3 that retrieves the contents of a URL for you, runs the contents through an html-to-markdown parser, and displays the result in a new tab in Sublime
Installation
- Recommended: Download Package Control and install using the Package Control: Install Package command (search for Wget)
- Not recommended: Simply download this repo and save it to a Wget directory inside your Sublime Packages/ directory. You will not receive automatic updates as you would following option 1
Usage
There are two basic use-cases:
- Ad-hoc retrieval of web pages
- Retrieval of web pages from a user-defined list
1. Ad-hoc retrieval of web pages
SublimeWget adds a new command to your palette: 'Wget'. Simply select this command, type in the url you want to access and press enter. Don't worry about adding 'http://' at the start, SublimeWget will add it if it's missing. 'www' is not required either.
SublimeWget will retrieve the page asynchronously, and will open the page in a new tab in Sublime when done.
2. Retrieval of web pages from a user-defined list
Navigate to Preferences > Package Settings > SublimeWget > Settings - User
In this file, add the following, and customise your sites
list as desired (obviously, uncomment the site object to get started)
{
"sites": [
// {
// "name":"", //Appears as filename in window e.g. "Bootstrap CSS"
// "address":"" //The website to load e.g. "http://getbootstrap.com/css"
// }
]
}
SublimeWget has added a new command to your palette to access this list of sites quickly: 'Wget: My Sites'. Choose this command from the command palette and SublimeWget will present a list of your sites to choose from.
SublimeWget will retrieve the page asynchronously, and will open the page in a new tab in Sublime when done.
License
Copyright © 2014 James Hill oblongmana@gmail.com
Html2text.py is Copyright © 2004-2008 Aaron Swartz (GPLv3)
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
P.S. If you happen to find any deficiencies in attribution or license details anywhere in here, please do email me or post an issue