mirror of
https://gitea.blesmrt.net/mikaela/gist.git
synced 2024-11-22 03:09:22 +01:00
irc/limnoria: writeup titlefetching.md
This commit is contained in:
parent
d1a172ff6c
commit
2c92a4f1ee
19
irc/limnoria/titlefetching.md
Normal file
19
irc/limnoria/titlefetching.md
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
# A bit opinionated titlefetching
|
||||||
|
|
||||||
|
```
|
||||||
|
load Web
|
||||||
|
config plugins.web.snarfMultipleUrls True
|
||||||
|
config plugins.web.snarferShowDomain False
|
||||||
|
config plugins.web.snarferShowTargetDomain False
|
||||||
|
config channel #CHAN plugins.web.titleSnarfer True
|
||||||
|
config supybot.protocols.http.userAgents "Limnoria UrlPreviewBot"
|
||||||
|
```
|
||||||
|
|
||||||
|
* enables the plugin (shipped with Limnoria)
|
||||||
|
* enables titlefetching for all links on line, not just the first one
|
||||||
|
* disables showing domain (small protection against multiple titlesnarfers entering loop)
|
||||||
|
* disables showing redirect target -||-
|
||||||
|
* enables titlefetching per-channel (avoids unwanted channels in case of botloop)
|
||||||
|
* could also be `config config` or `config network NETWORKNAME` to do globally or per-network, but risk of accidental botloop
|
||||||
|
* sets user-agent to "Limnoria UrlPreviewBot" instead of ['Mozilla/5.0 (compatible; utils.web python module)' from 2005](https://github.com/ProgVal/Limnoria/blame/2990fcd302afdc6a3b741594017c3959fd5da2fd/src/utils/web.py#L120)
|
||||||
|
* I have heard that it's bad to pretend to be something you aren't and Twitter will only give you HTMl `<title>`s if your user-agent contains `UrlPreviewBot`
|
1
irc/supybot
Symbolic link
1
irc/supybot
Symbolic link
@ -0,0 +1 @@
|
|||||||
|
limnoria
|
Loading…
Reference in New Issue
Block a user