ilusm.dev

seo

Meta tags, sitemaps, robots.txt, light keyword/link helpers.

Load with: use seo

Quick example

use seo

result = semta("value", "value", 10)
prn(result)

Functions

Meta bundle

semta(title, desc, kw)

Performs the operation. Takes title, desc, kw.

semtg(m, ty, img, url)

Performs the operation. Takes m, ty, img, url.

smttw(m, card, site)

Performs the operation. Takes m, card, site.

smtcn(m, url)

Performs the operation. Takes m, url.

Sitemap

ssmne()

Creates a new instance.

ssmdd(sm, url, opts)

Performs the operation. Takes sm, url, opts.

ssm2x(sm)

Performs the operation. Takes sm.

ssmnd(sms)

Performs the operation. Takes sms.

robots.txt

srbts(rules)

Performs the operation. Takes rules.

Keywords (token frequency; not full TF-IDF)

skwdn(tx, kw)

Performs the operation. Takes tx, kw.

skwdx(tx, n)

Performs the operation. Takes tx, n.

skwdx0(pairs, limn)

Performs the operation. Takes pairs, limn.

Links (best-effort href extraction)

seabs(base, rel)

Performs the operation. Takes base, rel.

slnkn(url)

Performs the operation. Takes url.

sbkln(domain)

Performs the operation. Takes domain.

Page timing / size (rough)

scrvt(url)

Performs the operation. Takes url.

sespd(url)

Performs the operation. Takes url.

smbch(url)

Checks a condition. Takes url.

Schema.org JSON shape

sschm(ty, dat)

Performs the operation. Takes ty, dat.

sbrdc(items)

Performs the operation. Takes items.

URL slug

seslg(tx)

Performs the operation. Takes tx.

srlst(base, slugs)

Sets a value or starts a process. Takes base, slugs.

Content snapshot

scntn(url)

Performs the operation. Takes url.

Rank / search (scraping stub; fragile)

sgsrc(q)

Performs the operation. Takes q.

sernk(kw, site)

Performs the operation. Takes kw, site.

Audit

seodt(url)

Performs the operation. Takes url.

sjsnl(sch)

Performs the operation. Takes sch.

seomp(html)

Performs the operation. Takes html.

shrfl(urls)

Performs the operation. Takes urls.

Notes

  • SEO helpers - meta tags, sitemap, structured data.