Skip to content

geniusmaaakun/webclip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

98 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebClip

ソースコード言語 ソースコード数 ソースコードサイズ

logo

Overview

Get HTML files from a website on the command line, convert them to markdown format, and save them in a specified folder. By specifying the option, image files are also downloaded. It is used when you want to save the material of a specific URL locally.

Requirement

  • MacOS, Windows, Linux
  • golang: 1.18~
  • react 18

install

make install

Usage

List of command options

  • -u: specify the URL
  • -o: specify the save directory
  • -save: save to database
  • -d: also save the image file of the target page
// Converts the HTML of the target URL to markdown and saves it locally in the specified directory
webclip -u "{URL}" -o "{OUTPUT_DIR}"

// By adding --save, you can save it to the database and list it with the server command described later.
webclip -u "{URL}" -o "{OUTPUT_DIR}" -save

// It also downloads images in HTML
webclip -u "{URL}" -o "{OUTPUT_DIR}" -save -d

List of subcommands

  • search: Search the database for files that match the conditions from the saved files. Only if --save is specified
webclip search -b "{body}"
webclip search -t "{title}"
  • server: Display the list page of saved files. Simple as it is a command line tool. http://localhost:8080
webclip server
  • clean: Delete data from DB if file path does not exist. You can save DB space.
webclip clean
  • zip: zip the file
webclip zip
webclip zip -t "{title}"
webclip zip -b "{body}"
webclip zip -t "{title}" -b "{body}"

Features and Description

  • Created to automate manual copying and pasting of materials. By executing it on the command line, the HTML file of the specified URL is acquired, converted to markdown format, and saved in the specified folder.

  • clean architecture
    I made it for clean architecture practice.

  • react + golang
    I wanted to try using react and golang, so I adopted react for the front end.

Reference

Author

twitter@geniusmaaakun

Licence

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published