GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Conversation

Notices

  1. Embed this notice
    Flanker (flanker@decayable.ink)'s status on Friday, 04-Apr-2025 20:00:19 JST Flanker Flanker
    ok so im working on an ebooks bot and i'm writing it myself because im ganster as shit but unfortunately im retarded and the best way i could think to not accidentally ddos ryona.agency every time i want to update the list of posts is this. this seems stupid i think.
    In conversation about 2 months ago from decayable.ink permalink

    Attachments


    1. https://decayable.ink/media/9e8116bd846547376a212cc4cef66b11eb6ab5acb0699b0d62285db482561746.png
    • Embed this notice
       (mint@ryona.agency)'s status on Friday, 04-Apr-2025 20:00:18 JST  
      in reply to
      @Flanker You could maybe record the date of the last post and fetch posts (with reasonable intervals, like 1-2 req/s) until you hit one with a created_at earlier than recorded date. Shouldn't be a problem unless there happen to be some posts out of order. Or do the same with flake IDs like AskGA7mLKPPzGh6uK8 (which while semi-random are still generally sequential).
      In conversation about 2 months ago permalink
    • Embed this notice
      Flanker (flanker@decayable.ink)'s status on Friday, 04-Apr-2025 20:08:16 JST Flanker Flanker
      in reply to
      • 
      that would require me to know what programming is, unfortunately.

      That said, with the way mastodon.py deals with fetching statuses (20 item "pages" all the time every time (unless theres a way to reduce the size or something i haven't seen)), comparing it to like the 40 newest lines in the corpus should hopefully be enough to reduce un-necessary fetches to at most like 2 in the worst case scenario. fwiw i'm only planning to update it like once a month and im def gonna do it manually least i fucked something up lol
      In conversation about 2 months ago permalink

      Attachments


       likes this.
    • Embed this notice
       (mint@ryona.agency)'s status on Friday, 04-Apr-2025 20:27:54 JST  
      in reply to
      @Flanker I also advice you to make it post unlisted so that it won't clog up the public timeline too much.
      In conversation about 2 months ago permalink

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.