[ Home ] [ wiz / dep / hob / lounge / jp / meta / games / music ] [ all ] [  Rules ] [  FAQ ] [  Search /  History ] [  Textboard ] [  Wiki ]

/meta/ - Meta

Suggestions and Feedback
Email
Comment
File
Embed
Password (For file deletion.)

  [Go to bottom]   [Catalog]   [Return]   [Archive]

File: 1645979152804.jpg (192.72 KB, 1530x1546, 765:773, 56887d8e91f9d6e004cb42bedd….jpg) ImgOps iqdb

5d94b No.61899

Is there a .json for /all/ or recent posts?

63d03 No.61900

I'm pretty sure there was json rss file for every board but not /all/ but I think all of them disappeared after the site went down

5d94b No.61901

File: 1646061311275.jpg (15.25 KB, 228x239, 228:239, c61448610b952763ef08f02fe4….jpg) ImgOps iqdb

>>61900
I'm not sure what you mean by json rss file but /wiz/1.json, /hob/1.json, etc, are still there. I could scan across them and make my own /all/ but it would save ~240kb and 6 requests if an all.json already exists. It's just to be friendly to wizchon (and also so I don't have to write anything)

63d03 No.61906

>>61901
Oh, maybe I got the file type wrong but each board had some file that you can put into an rss feed to get posts, I remember using it briefly some time ago but was just a novelty

1ff9b No.61907

>>61906
i think wizchan's home page generates such a file

5d94b No.61909

>>61906
>>61907
That's cool, I didn't know wizchon had that. There's an index.rss for each board but I can't see one on the home page or /all/. The rss feeds seem to update with new threads rather than new posts. Also, in case anyone wants to copy the logic here's /all/ in elisp:

;; accumulate threads, sort by last modified, print first 10

(defun wiz-posts (boards)
  (loop
   for board in boards
   vconcat (cdar (url-json (format "https://wizchan.org/%s/0.json" board)))))

(map
 'wiz-print
 (take
  (sort
   (lambda (a b)
     (≥ (associate 'last_modified a)
        (associate 'last_modified b)))
   (wiz-posts '(wiz dep hob lounge jp games)))
  10))

This produces output like:
>(sub . Anti-Crawl Thread CVI)
>(com . No politics or religion in the crawl thread, please.<br/><span class="quote"><br/>&gt;Ambient sounds to wash away distraction</span><br/><a href="https://asoftmurmur.com/" rel="nofollow noreferrer" target="_blank">https://asoftmurmur.com/</a><br/><span class="quote">&gt;Assortment of shuffled relaxing VG OSTs</span><br/><a href="https://www.vipvgm.net/mellow" rel="nofollow noreferrer" target="_blank">https://www.vipvgm.net/mellow</a>)
>(mod . 1646413250)
>(sub . Hermit Pill)
>(com . How do I go about becoming a hermit? I want to live in a forest far away from everyone. The lockdown in my country has taught me that I am the happiest when isolated. I am aware that survival in nature is no small thing but it beats the shit out of having to be a waggie and being around normies. Also what are some comfy places I can live in without having to worry about taxes, socializing, etc?)
>(mod . 1646411148)
Now imma try following threads to see if emacs can notify me when wizzies make a new bread or post.



[Go to top] [Catalog] [Return][Post a Reply]
Delete Post [ ]
[ Home ] [ wiz / dep / hob / lounge / jp / meta / games / music ] [ all ] [  Rules ] [  FAQ ] [  Search /  History ] [  Textboard ] [  Wiki ]