Skip to content

ytyaru/Python.Webmention.io.Backup.20220604133640

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ja

Webmention.io.Backup

CLI to back up JSON data of webmention.io.

  • webmention.io API
    • https://webmention.io/api/mentions.jf2?token=xxxxx&domain=yyyyyyy

Requirement

$ uname -a
Linux raspberrypi 5.10.63-v7l+ #1496 SMP Wed Dec 1 15:58:56 GMT 2021 armv7l GNU/Linux

Installation

sudo apt install python3 python3-pip
git clone https://github.com/ytyaru/Python.Webmention.io.Backup.20220604133640
cd Python.Webmention.io.Backup.20220604133640/src

Usage

For some reason, there were mentions that could not be obtained in domain units. Therefore, it is acquired in units of target (page).

targets.tsv

Write the URL of the page for which you want to get mentions line by line as shown below.

https://ytyaru.github.io/
https://ytyaru.github.io/Html.Mpurse.Api.20220517160403/setup.html
https://ytyaru.github.io/Html.Mpurse.Api.20220517160403/index.html
https://ytyaru.github.io/Html.SNS.Icon.20220524195153/
https://ytyaru.github.io/MonaCoin.Icon.20220521092535/
https://ytyaru.github.io/Html.MonaCoin.Button.Generator.20220519194201/
https://ytyaru.github.io/Html.MonaCoin.Button.Component.Generator.20220526192239/
https://ytyaru.github.io/Html.MonaCoin.Button.Component.Generator.Animation.20220531091850/
https://ytyaru.github.io/Html.MonaCoin.Button.Component.Generator.Slim.20220531090526/
https://ytyaru.github.io/Html.Mastodon.Toot.Button.Dialog.WebComponent.20220602192922/
https://ytyaru.github.io/Html.Tweet.Button.Generator.20220606171017/
https://ytyaru.github.io/Html.Tweet.Button.WebComponent.20220607091729/
https://ytyaru.github.io/Html.Webmention.WebComponent.20220607141057/

menbk

./menbk
  1. Create a directory with the domain name of the specified page
  2. Create a file along the path of the specified page
  3. Get all mentions for that page
  4. Save as JSON file

For example, it looks like the following.

  • backup/
    • ytyaru.github.io/
      • ytyaru.github.io.json
      • Html.MonaCoin.Button.Component.Generator.20220526192239.json
      • Html.MonaCoin.Button.Generator.20220519194201.json
      • ...

If the page does not have any mentions, do not create a JSON file.

Author

 ytyaru

  • github
  • hatena
  • twitter
  • mastodon

License

This software is CC0 licensed.

CC0

About

CLI to back up JSON data of [webmention.io][].

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published