{"action":"opened","number":14,"pull_request":{"url":"https://api.github.com/repos/nodiscc/shaarchiver/pulls/14","id":48273507,"html_url":"https://github.com/nodiscc/shaarchiver/pull/14","diff_url":"https://github.com/nodiscc/shaarchiver/pull/14.diff","patch_url":"https://github.com/nodiscc/shaarchiver/pull/14.patch","issue_url":"https://api.github.com/repos/nodiscc/shaarchiver/issues/14","number":14,"state":"open","locked":false,"title":"Rework link handling, export description in markdown","user":{"login":"pikzen","id":373126,"avatar_url":"https://avatars.githubusercontent.com/u/373126?v=3","gravatar_id":"","url":"https://api.github.com/users/pikzen","html_url":"https://github.com/pikzen","followers_url":"https://api.github.com/users/pikzen/followers","following_url":"https://api.github.com/users/pikzen/following{/other_user}","gists_url":"https://api.github.com/users/pikzen/gists{/gist_id}","starred_url":"https://api.github.com/users/pikzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pikzen/subscriptions","organizations_url":"https://api.github.com/users/pikzen/orgs","repos_url":"https://api.github.com/users/pikzen/repos","events_url":"https://api.github.com/users/pikzen/events{/privacy}","received_events_url":"https://api.github.com/users/pikzen/received_events","type":"User","site_admin":false},"body":"Instead of letting each method doing its own thing to retrieve data from a bs4.Tag, we now define a Link struct and build it from the link list. Fields are properly defined and access is easy. As a result of this, get_all_tags is no longer needed as the taglist is always available. This link struct also attempts to match a description to the link.\r\n\r\nAs a result of this, exporting the description is ez. Here's an example output:\r\n\r\n## bookmarks_all_20151021_004352.html\r\n4 links\r\n\r\n```\r\nsoftware tests opensource secretstuff google\r\n```\r\n\r\n * [Googling Google to go on Google](http://google.com)`@software @google`\r\n * [tha hub fo' git stuff](http://github.com)`@software @tests @opensource`\r\n```\r\nThis is a markdown description. I'm even using **Markdown** *specific* stuff.\r\n===============================\r\n\r\nSo you know I'm :  \r\n * not joking.\r\n 1. serious\r\n```\r\n * [ Shaarli: the personal, minimalist, super-fast, no-database delicious clone](https://github.com/shaarli/Shaarli/wiki)`@opensource @software`\r\n```\r\nWelcome to Shaarli! This is your first public bookmark. To edit or delete me, you must first login.\r\n\r\nTo learn how to use Shaarli, consult the link \"Help/documentation\" at the bottom of this page.\r\n\r\nYou use the community supported version of the original Shaarli project, by Sebastien Sauvage.\r\n```\r\n * [My secret stuff... - Pastebin.com](http://sebsauvage.net/paste/?8434b27936c09649#bR7XsXhoTiLcqCpQbmOpBi3rq2zzQUC5hBI7ZT1O3x8=)`@secretstuff`\r\n```\r\nShhhh! I'm a private link only YOU can see. You can delete me too.\r\n```\r\n","created_at":"2015-10-20T23:59:37Z","updated_at":"2015-10-20T23:59:37Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/nodiscc/shaarchiver/pulls/14/commits","review_comments_url":"https://api.github.com/repos/nodiscc/shaarchiver/pulls/14/comments","review_comment_url":"https://api.github.com/repos/nodiscc/shaarchiver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nodiscc/shaarchiver/issues/14/comments","statuses_url":"https://api.github.com/repos/nodiscc/shaarchiver/statuses/8133de80a9793a4451b3978e3c631568d2e7dca7","head":{"label":"pikzen:md_export_desc","ref":"md_export_desc","sha":"8133de80a9793a4451b3978e3c631568d2e7dca7","user":{"login":"pikzen","id":373126,"avatar_url":"https://avatars.githubusercontent.com/u/373126?v=3","gravatar_id":"","url":"https://api.github.com/users/pikzen","html_url":"https://github.com/pikzen","followers_url":"https://api.github.com/users/pikzen/followers","following_url":"https://api.github.com/users/pikzen/following{/other_user}","gists_url":"https://api.github.com/users/pikzen/gists{/gist_id}","starred_url":"https://api.github.com/users/pikzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pikzen/subscriptions","organizations_url":"https://api.github.com/users/pikzen/orgs","repos_url":"https://api.github.com/users/pikzen/repos","events_url":"https://api.github.com/users/pikzen/events{/privacy}","received_events_url":"https://api.github.com/users/pikzen/received_events","type":"User","site_admin":false},"repo":{"id":42075212,"name":"shaarchiver","full_name":"pikzen/shaarchiver","owner":{"login":"pikzen","id":373126,"avatar_url":"https://avatars.githubusercontent.com/u/373126?v=3","gravatar_id":"","url":"https://api.github.com/users/pikzen","html_url":"https://github.com/pikzen","followers_url":"https://api.github.com/users/pikzen/followers","following_url":"https://api.github.com/users/pikzen/following{/other_user}","gists_url":"https://api.github.com/users/pikzen/gists{/gist_id}","starred_url":"https://api.github.com/users/pikzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pikzen/subscriptions","organizations_url":"https://api.github.com/users/pikzen/orgs","repos_url":"https://api.github.com/users/pikzen/repos","events_url":"https://api.github.com/users/pikzen/events{/privacy}","received_events_url":"https://api.github.com/users/pikzen/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pikzen/shaarchiver","description":"Archive your Firefox, Shaarli or delicious bookmarks","fork":true,"url":"https://api.github.com/repos/pikzen/shaarchiver","forks_url":"https://api.github.com/repos/pikzen/shaarchiver/forks","keys_url":"https://api.github.com/repos/pikzen/shaarchiver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pikzen/shaarchiver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pikzen/shaarchiver/teams","hooks_url":"https://api.github.com/repos/pikzen/shaarchiver/hooks","issue_events_url":"https://api.github.com/repos/pikzen/shaarchiver/issues/events{/number}","events_url":"https://api.github.com/repos/pikzen/shaarchiver/events","assignees_url":"https://api.github.com/repos/pikzen/shaarchiver/assignees{/user}","branches_url":"https://api.github.com/repos/pikzen/shaarchiver/branches{/branch}","tags_url":"https://api.github.com/repos/pikzen/shaarchiver/tags","blobs_url":"https://api.github.com/repos/pikzen/shaarchiver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pikzen/shaarchiver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pikzen/shaarchiver/git/refs{/sha}","trees_url":"https://api.github.com/repos/pikzen/shaarchiver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pikzen/shaarchiver/statuses/{sha}","languages_url":"https://api.github.com/repos/pikzen/shaarchiver/languages","stargazers_url":"https://api.github.com/repos/pikzen/shaarchiver/stargazers","contributors_url":"https://api.github.com/repos/pikzen/shaarchiver/contributors","subscribers_url":"https://api.github.com/repos/pikzen/shaarchiver/subscribers","subscription_url":"https://api.github.com/repos/pikzen/shaarchiver/subscription","commits_url":"https://api.github.com/repos/pikzen/shaarchiver/commits{/sha}","git_commits_url":"https://api.github.com/repos/pikzen/shaarchiver/git/commits{/sha}","comments_url":"https://api.github.com/repos/pikzen/shaarchiver/comments{/number}","issue_comment_url":"https://api.github.com/repos/pikzen/shaarchiver/issues/comments{/number}","contents_url":"https://api.github.com/repos/pikzen/shaarchiver/contents/{+path}","compare_url":"https://api.github.com/repos/pikzen/shaarchiver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pikzen/shaarchiver/merges","archive_url":"https://api.github.com/repos/pikzen/shaarchiver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pikzen/shaarchiver/downloads","issues_url":"https://api.github.com/repos/pikzen/shaarchiver/issues{/number}","pulls_url":"https://api.github.com/repos/pikzen/shaarchiver/pulls{/number}","milestones_url":"https://api.github.com/repos/pikzen/shaarchiver/milestones{/number}","notifications_url":"https://api.github.com/repos/pikzen/shaarchiver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pikzen/shaarchiver/labels{/name}","releases_url":"https://api.github.com/repos/pikzen/shaarchiver/releases{/id}","created_at":"2015-09-07T21:23:47Z","updated_at":"2015-09-07T21:23:47Z","pushed_at":"2015-10-20T23:56:16Z","git_url":"git://github.com/pikzen/shaarchiver.git","ssh_url":"git@github.com:pikzen/shaarchiver.git","clone_url":"https://github.com/pikzen/shaarchiver.git","svn_url":"https://github.com/pikzen/shaarchiver","homepage":"","size":192,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"nodiscc:master","ref":"master","sha":"f884b3f3a5d57be948bf202af7af90207e1dc60d","user":{"login":"nodiscc","id":3950390,"avatar_url":"https://avatars.githubusercontent.com/u/3950390?v=3","gravatar_id":"","url":"https://api.github.com/users/nodiscc","html_url":"https://github.com/nodiscc","followers_url":"https://api.github.com/users/nodiscc/followers","following_url":"https://api.github.com/users/nodiscc/following{/other_user}","gists_url":"https://api.github.com/users/nodiscc/gists{/gist_id}","starred_url":"https://api.github.com/users/nodiscc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodiscc/subscriptions","organizations_url":"https://api.github.com/users/nodiscc/orgs","repos_url":"https://api.github.com/users/nodiscc/repos","events_url":"https://api.github.com/users/nodiscc/events{/privacy}","received_events_url":"https://api.github.com/users/nodiscc/received_events","type":"User","site_admin":false},"repo":{"id":25533932,"name":"shaarchiver","full_name":"nodiscc/shaarchiver","owner":{"login":"nodiscc","id":3950390,"avatar_url":"https://avatars.githubusercontent.com/u/3950390?v=3","gravatar_id":"","url":"https://api.github.com/users/nodiscc","html_url":"https://github.com/nodiscc","followers_url":"https://api.github.com/users/nodiscc/followers","following_url":"https://api.github.com/users/nodiscc/following{/other_user}","gists_url":"https://api.github.com/users/nodiscc/gists{/gist_id}","starred_url":"https://api.github.com/users/nodiscc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nodiscc/subscriptions","organizations_url":"https://api.github.com/users/nodiscc/orgs","repos_url":"https://api.github.com/users/nodiscc/repos","events_url":"https://api.github.com/users/nodiscc/events{/privacy}","received_events_url":"https://api.github.com/users/nodiscc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nodiscc/shaarchiver","description":"Archive your Firefox, Shaarli or delicious bookmarks","fork":false,"url":"https://api.github.com/repos/nodiscc/shaarchiver","forks_url":"https://api.github.com/repos/nodiscc/shaarchiver/forks","keys_url":"https://api.github.com/repos/nodiscc/shaarchiver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nodiscc/shaarchiver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nodiscc/shaarchiver/teams","hooks_url":"https://api.github.com/repos/nodiscc/shaarchiver/hooks","issue_events_url":"https://api.github.com/repos/nodiscc/shaarchiver/issues/events{/number}","events_url":"https://api.github.com/repos/nodiscc/shaarchiver/events","assignees_url":"https://api.github.com/repos/nodiscc/shaarchiver/assignees{/user}","branches_url":"https://api.github.com/repos/nodiscc/shaarchiver/branches{/branch}","tags_url":"https://api.github.com/repos/nodiscc/shaarchiver/tags","blobs_url":"https://api.github.com/repos/nodiscc/shaarchiver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nodiscc/shaarchiver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nodiscc/shaarchiver/git/refs{/sha}","trees_url":"https://api.github.com/repos/nodiscc/shaarchiver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nodiscc/shaarchiver/statuses/{sha}","languages_url":"https://api.github.com/repos/nodiscc/shaarchiver/languages","stargazers_url":"https://api.github.com/repos/nodiscc/shaarchiver/stargazers","contributors_url":"https://api.github.com/repos/nodiscc/shaarchiver/contributors","subscribers_url":"https://api.github.com/repos/nodiscc/shaarchiver/subscribers","subscription_url":"https://api.github.com/repos/nodiscc/shaarchiver/subscription","commits_url":"https://api.github.com/repos/nodiscc/shaarchiver/commits{/sha}","git_commits_url":"https://api.github.com/repos/nodiscc/shaarchiver/git/commits{/sha}","comments_url":"https://api.github.com/repos/nodiscc/shaarchiver/comments{/number}","issue_comment_url":"https://api.github.com/repos/nodiscc/shaarchiver/issues/comments{/number}","contents_url":"https://api.github.com/repos/nodiscc/shaarchiver/contents/{+path}","compare_url":"https://api.github.com/repos/nodiscc/shaarchiver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nodiscc/shaarchiver/merges","archive_url":"https://api.github.com/repos/nodiscc/shaarchiver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nodiscc/shaarchiver/downloads","issues_url":"https://api.github.com/repos/nodiscc/shaarchiver/issues{/number}","pulls_url":"https://api.github.com/repos/nodiscc/shaarchiver/pulls{/number}","milestones_url":"https://api.github.com/repos/nodiscc/shaarchiver/milestones{/number}","notifications_url":"https://api.github.com/repos/nodiscc/shaarchiver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nodiscc/shaarchiver/labels{/name}","releases_url":"https://api.github.com/repos/nodiscc/shaarchiver/releases{/id}","created_at":"2014-10-21T16:45:19Z","updated_at":"2015-09-04T20:32:32Z","pushed_at":"2015-10-20T23:08:06Z","git_url":"git://github.com/nodiscc/shaarchiver.git","ssh_url":"git@github.com:nodiscc/shaarchiver.git","clone_url":"https://github.com/nodiscc/shaarchiver.git","svn_url":"https://github.com/nodiscc/shaarchiver","homepage":"","size":372,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nodiscc/shaarchiver/pulls/14"},"html":{"href":"https://github.com/nodiscc/shaarchiver/pull/14"},"issue":{"href":"https://api.github.com/repos/nodiscc/shaarchiver/issues/14"},"comments":{"href":"https://api.github.com/repos/nodiscc/shaarchiver/issues/14/comments"},"review_comments":{"href":"https://api.github.com/repos/nodiscc/shaarchiver/pulls/14/comments"},"review_comment":{"href":"https://api.github.com/repos/nodiscc/shaarchiver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nodiscc/shaarchiver/pulls/14/commits"},"statuses":{"href":"https://api.github.com/repos/nodiscc/shaarchiver/statuses/8133de80a9793a4451b3978e3c631568d2e7dca7"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":5,"additions":67,"deletions":47,"changed_files":1}}