!seqaBRImHwZJpNbjYb:cadence.moe:8111

Bibliogram

316 Members
Code of conduct: https://git.sr.ht/~cadence/bibliogram/tree/master/CODE_OF_CONDUCT.md Web: https://bibliogram.art Source: https://sr.ht/~cadence/bibliogram/72 Servers

Load older messages


SenderMessageTime
16 Oct 2021
@alirezadigi:matrix.orgalirezadigiJson API i mean09:14:15
@cadence:cadence.moecadence [they]Nope, that would put undue stress on the public servers.09:55:25
@cadence:cadence.moecadence [they]However, it's really easy to create your own API additionally, and it's also designed so that data can easily be collected without needing the frontend.09:56:02
@cadence:cadence.moecadence [they] Things in src/lib are the data collection part, and they can (mostly) be run separate from src/site. So you could import the src/lib files in another JS project & just use them. You'd need to hack at the code, but, definitely doable! 09:57:04
@alirezadigi:matrix.orgalirezadigiSorry friends whats the "Quota left" shown in pc? 🤔14:13:28
@cadence:cadence.moecadence [they]To stop automated scrapers spamming requests (this was an actual problem in the past) each IP gets a certain amount of quota to use. Quota is used up when browsing. For normal people, our limit of 25 should be sufficient for most things. Quota resets after a few hours. Different instances can customiee the quota. When self-hosting or calling methods in src/lib, the quota will be off by default.22:26:04
17 Oct 2021
@unixfox:matrix.orgunixfoxcan bibliogram use HTTP proxy?14:40:00
@cadence:cadence.moecadence [they]Don't know.23:21:19
@cadence:cadence.moecadence [they]Wanna find out with me?23:41:32
@msmith12:matrix.orgmsmith12;)23:43:56
18 Oct 2021
@unixfox:matrix.orgunixfoxI found that: https://www.npmjs.com/package/node-fetch-with-proxy06:51:25
@crhbetz:matrix.orgcrhbetz joined the room.07:52:39
@crhbetz:matrix.orgcrhbetz

Funny, I'm just trying matrix for the first time just because I wanted to discuss proxies for bibliogram ... :)
I found that you can use https://github.com/gajus/global-agent - beware, I have zero idea about anything node, so please excuse wrong wording. Also no clue if this is safe, or problematic in some way - that's why I intended to discuss in here.
However you can install this global-agent package, then set the GLOBAL_AGENT_HTTP_PROXY environment variable, and run bibliogram with node -r 'global-agent/bootstrap' server.js

So in the end, I have a socks proxy (SSH) to my home network, https://github.com/oyyd/http-proxy-to-socks to create a http proxy for global-agent, require global-agent for bibliogram - and that way, I can use my home internet connection for bibliogram

08:04:12
@crhbetz:matrix.orgcrhbetzI can confirm it works because my server is blocked, but with the setup I can scroll user profiles08:05:33
@cadence:cadence.moecadence [they]Okay, awesome! That's so cool.08:29:14
@_xmpp_jmp_chat=40ozg.ca:matrix.orgossguy left the room.14:41:13
@salastil:matrix.salastil.comsalastil joined the room.21:53:50
19 Oct 2021
@_xmpp_jmp_chat=40ozg.ca:matrix.orgossguy joined the room.00:05:22
@_xmpp_jmp_chat=40ozg.ca:matrix.orgossguy changed their display name from jmp_chat to ossguy.00:05:24
@the_tanka:matrix.org@the_tanka:matrix.org left the room.20:22:40
@_xmpp_jmp_chat=40ozg.ca:matrix.orgossguy changed their display name from ossguy to jmp_chat.23:45:42
@_xmpp_jmp_chat=40ozg.ca:matrix.orgossguy changed their display name from jmp_chat to ossguy.23:45:44
20 Oct 2021
@tadashi_aoi:matrix.orgtadashi_aoi joined the room.22:41:11
21 Oct 2021
@_xmpp_jmp_chat=40ozg.ca:matrix.orgossguy left the room.15:03:00
@alxanyae:matrix.orgAlexandra joined the room.17:02:29
22 Oct 2021
@_xmpp_jmp_chat=40ozg.ca:matrix.orgossguy joined the room.00:27:45
@_xmpp_jmp_chat=40ozg.ca:matrix.orgossguy changed their display name from jmp_chat to ossguy.00:27:47
@manerakai:matrix.orgManeraKai joined the room.07:47:19
@manerakai:matrix.orgManeraKai changed their display name from manerakai to ManeraKai.08:14:48
@manerakai:matrix.orgManeraKai changed their profile picture.08:15:06

There are no newer messages yet.


Back to Room List