Skip to content

fiatjaf/went

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

went stands for webmention endpoint tools.

import went

try:
    webmention = went.Webmention(source_url, target=target_url)
    # or webmention = went.Webmention(source_html, target=target_url)
except (went.NoContent, went.NoURLInSource):
    webmention = None

webmention.date == '2015-02-26'
webmention.url == 'http://someone.com/blog/hello.html'
webmention.name == 'Hello world'
webmention.html == '<a href="http://otherpage.com/">to see my <i>hello world</i> go to this other page</a>'
webmention.body == '[to see my _hello world_ go to this other page](http://otherpage.com/)'
webmention.via == 'twitter.com' # bridgy-specific
webmention.like == False # like and like-of become this.
webmention.author.name == 'Someone'
webmention.author.url == 'http://someone.com/'
webmention.author.photo == 'http://someone.com/photo.jpg'

About

webmention endpoint tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages