pixiv_down-daily.1 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. .Dd October 15, 2024
  2. .Dt PIXIV_DOWN-DAILY 1
  3. .Os
  4. .Sh NAME
  5. .Nm pixiv_down
  6. .Cm daily
  7. .Nd download content from followed artists between dates
  8. .Sh SYNOPSIS
  9. .Nm
  10. .Cm daily
  11. .Op Fl f
  12. .Op Fl s
  13. .Op Fl b Ar begin
  14. .Op Fl e Ar end
  15. .Sh DESCRIPTION
  16. .Nm
  17. .Cm daily
  18. will download all recently uploaded content from the artists that
  19. you follow, up to (and including)
  20. .Ar end .
  21. If no end date has been provided,
  22. .Nm
  23. will attempt to use the
  24. .Ar begin
  25. date from the previous run as
  26. .Ar end
  27. date for this run.
  28. .Pp
  29. .Nm
  30. .Cm daily
  31. supports downloading the following content types:
  32. .Bl -bullet -compact
  33. .It
  34. Illustrations
  35. .It
  36. Manga
  37. .It
  38. Novels
  39. .It
  40. Ugoira
  41. .El
  42. .Ss Options
  43. .Bl -tag
  44. .It Fl h, \-help
  45. Print the synopsis, a list of options, and some examples.
  46. .It Fl b, \-begin
  47. Only start downloading if the piece of content was uploaded on or
  48. earlier than
  49. .Ar begin .
  50. The begin time is one minute before midnight (23:59).
  51. The format expected is YYYY-MM-DD.
  52. .It Fl e, \-end
  53. Stop downloading content once the creation date is older than
  54. .Ar end .
  55. The stop time is midnight (00:00) of the provided date.
  56. The format expected is YYYY-MM-DD.
  57. .It Fl f, \-force
  58. Overwrite existing downloads. Can be used to re-download works
  59. that previously downloaded an invalid file (e.g. a JPEG containing
  60. an HTML error page). This will ignore any partial downloads.
  61. .It Fl s, \-sfw-only
  62. Only download content that is
  63. .Qq safe for work ,
  64. as determined by pixiv and the artist. Omitting this flag will
  65. cause both SFW and NSFW content to be downloaded.
  66. .Sh EXAMPLES
  67. Assuming that the current date and time is 2024-04-02T10:00:00,
  68. you can download only the content uploaded in the last day by
  69. running:
  70. .Dl $ pixiv_down daily -e 2024-04-01
  71. Or more generically:
  72. .Dl $ pixiv_down daily -e "$(date -d 'yesterday' +%F)"
  73. Both of the above commands will download content from
  74. 2024-04-02T10:00:00 to 2024-04-01T00:00:00.
  75. .Pp
  76. If you have previously run
  77. .Cm daily ,
  78. then the
  79. .Va end
  80. date will be determined automatically, meaning you can just call
  81. .Dl $ pixiv_down daily
  82. and that will download the artworks between 2024-04-02T10:00:00
  83. and 2024-04-01:T00:00:00. This works even if no
  84. .Va begin
  85. date was provided in the previous run.
  86. .Pp
  87. You can also specify a
  88. .Va begin
  89. date, which will cause downloading to stop at midnight (00:00:00)
  90. of the provided date:
  91. .Dl $ pixiv_down daily -e 2024-03-01 -b 2024-03-31
  92. The above will download all content for the month of March, 2024.
  93. .Pp
  94. You can also limit the type of content downloaded to
  95. .Qq safe for work :
  96. .Dl $ pixiv_down daily -e 2024-04-01 --sfw-only
  97. .Sh SEE ALSO
  98. .Xr pixiv_down 1 ,
  99. .Xr pixiv_down-following 1 ,
  100. .Xr date 1
  101. .Sh AUTHORS
  102. Written by
  103. .An Mio Aq stigma@disroot.org
  104. .Sh BUGS
  105. .Pp
  106. Please report any bugs you may find at the bug tracker, which can be
  107. found on the website at
  108. .Lk https://yume-neru.neocities.org/p/pixiv_down.html