{"action":"created","comment":{"url":"https://api.github.com/repos/SAAVY/magpie_demo/pulls/comments/34838242","id":34838242,"diff_hunk":"@@ -0,0 +1,83 @@\n+import json\n+import requests\n+\n+from flask import flash\n+from flask import Flask\n+from flask import redirect\n+from flask import render_template\n+from flask import request\n+from flask import url_for\n+from flask_bootstrap import Bootstrap\n+from flask_wtf import Form\n+from flask_wtf.csrf import CsrfProtect\n+from wtforms import SubmitField\n+from wtforms import TextField\n+from wtforms.validators import ValidationError\n+\n+\n+api_url = \"http://localhost:5000/website\"\n+\n+\n+class WebsiteForm(Form):\n+\n+    def is_valid_url(form, field):\n+        if field.data == \"\":\n+            error_msg = 'Must not be empty field'\n+            flash(\"URL Field Error: \" + error_msg, 'error')\n+            raise ValidationError(error_msg)\n+\n+    text_field = TextField('Website URL:', [is_valid_url], description='Enter in a website url to parse, eg: http://www.youtube.com/watch?v=dQw4w9WgXcQ')\n+    submit_button = SubmitField('Submit')","path":"web/app/setup.py","position":30,"original_position":30,"commit_id":"93a0a1c3349970371faf20b653e870acd7faba45","original_commit_id":"93a0a1c3349970371faf20b653e870acd7faba45","user":{"login":"MeenuV","id":3614928,"avatar_url":"https://avatars.githubusercontent.com/u/3614928?v=3","gravatar_id":"","url":"https://api.github.com/users/MeenuV","html_url":"https://github.com/MeenuV","followers_url":"https://api.github.com/users/MeenuV/followers","following_url":"https://api.github.com/users/MeenuV/following{/other_user}","gists_url":"https://api.github.com/users/MeenuV/gists{/gist_id}","starred_url":"https://api.github.com/users/MeenuV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MeenuV/subscriptions","organizations_url":"https://api.github.com/users/MeenuV/orgs","repos_url":"https://api.github.com/users/MeenuV/repos","events_url":"https://api.github.com/users/MeenuV/events{/privacy}","received_events_url":"https://api.github.com/users/MeenuV/received_events","type":"User","site_admin":false},"body":"Oh no, I meant the \"Submit\" button. ","created_at":"2015-07-16T21:09:53Z","updated_at":"2015-07-16T21:09:53Z","html_url":"https://github.com/SAAVY/magpie_demo/pull/1#discussion_r34838242","pull_request_url":"https://api.github.com/repos/SAAVY/magpie_demo/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/SAAVY/magpie_demo/pulls/comments/34838242"},"html":{"href":"https://github.com/SAAVY/magpie_demo/pull/1#discussion_r34838242"},"pull_request":{"href":"https://api.github.com/repos/SAAVY/magpie_demo/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/SAAVY/magpie_demo/pulls/1","id":40034025,"html_url":"https://github.com/SAAVY/magpie_demo/pull/1","diff_url":"https://github.com/SAAVY/magpie_demo/pull/1.diff","patch_url":"https://github.com/SAAVY/magpie_demo/pull/1.patch","issue_url":"https://api.github.com/repos/SAAVY/magpie_demo/issues/1","number":1,"state":"open","locked":false,"title":"Demo app","user":{"login":"AliceYuan","id":1325382,"avatar_url":"https://avatars.githubusercontent.com/u/1325382?v=3","gravatar_id":"","url":"https://api.github.com/users/AliceYuan","html_url":"https://github.com/AliceYuan","followers_url":"https://api.github.com/users/AliceYuan/followers","following_url":"https://api.github.com/users/AliceYuan/following{/other_user}","gists_url":"https://api.github.com/users/AliceYuan/gists{/gist_id}","starred_url":"https://api.github.com/users/AliceYuan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AliceYuan/subscriptions","organizations_url":"https://api.github.com/users/AliceYuan/orgs","repos_url":"https://api.github.com/users/AliceYuan/repos","events_url":"https://api.github.com/users/AliceYuan/events{/privacy}","received_events_url":"https://api.github.com/users/AliceYuan/received_events","type":"User","site_admin":false},"body":"Initial demo app, shows json view.\r\nAlso incorporates integration scripts copied form https://github.com/SAAVY/magpie\r\n\r\n<img width=\"1201\" alt=\"screenshot 2015-07-16 10 46 59\" src=\"https://cloud.githubusercontent.com/assets/1325382/8726426/2444682e-2ba8-11e5-8ddf-ff26d96da4e6.png\">\r\n\r\n<img width=\"1197\" alt=\"screenshot 2015-07-16 10 47 54\" src=\"https://cloud.githubusercontent.com/assets/1325382/8726429/28e1cee4-2ba8-11e5-96e6-ca2bec49595b.png\">","created_at":"2015-07-15T15:15:42Z","updated_at":"2015-07-16T21:09:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"abf14677e6662661e76aa8177e93ac6e93066633","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/SAAVY/magpie_demo/pulls/1/commits","review_comments_url":"https://api.github.com/repos/SAAVY/magpie_demo/pulls/1/comments","review_comment_url":"https://api.github.com/repos/SAAVY/magpie_demo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/SAAVY/magpie_demo/issues/1/comments","statuses_url":"https://api.github.com/repos/SAAVY/magpie_demo/statuses/93a0a1c3349970371faf20b653e870acd7faba45","head":{"label":"SAAVY:demo_app","ref":"demo_app","sha":"93a0a1c3349970371faf20b653e870acd7faba45","user":{"login":"SAAVY","id":12940854,"avatar_url":"https://avatars.githubusercontent.com/u/12940854?v=3","gravatar_id":"","url":"https://api.github.com/users/SAAVY","html_url":"https://github.com/SAAVY","followers_url":"https://api.github.com/users/SAAVY/followers","following_url":"https://api.github.com/users/SAAVY/following{/other_user}","gists_url":"https://api.github.com/users/SAAVY/gists{/gist_id}","starred_url":"https://api.github.com/users/SAAVY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SAAVY/subscriptions","organizations_url":"https://api.github.com/users/SAAVY/orgs","repos_url":"https://api.github.com/users/SAAVY/repos","events_url":"https://api.github.com/users/SAAVY/events{/privacy}","received_events_url":"https://api.github.com/users/SAAVY/received_events","type":"Organization","site_admin":false},"repo":{"id":37618406,"name":"magpie_demo","full_name":"SAAVY/magpie_demo","owner":{"login":"SAAVY","id":12940854,"avatar_url":"https://avatars.githubusercontent.com/u/12940854?v=3","gravatar_id":"","url":"https://api.github.com/users/SAAVY","html_url":"https://github.com/SAAVY","followers_url":"https://api.github.com/users/SAAVY/followers","following_url":"https://api.github.com/users/SAAVY/following{/other_user}","gists_url":"https://api.github.com/users/SAAVY/gists{/gist_id}","starred_url":"https://api.github.com/users/SAAVY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SAAVY/subscriptions","organizations_url":"https://api.github.com/users/SAAVY/orgs","repos_url":"https://api.github.com/users/SAAVY/repos","events_url":"https://api.github.com/users/SAAVY/events{/privacy}","received_events_url":"https://api.github.com/users/SAAVY/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SAAVY/magpie_demo","description":"Demo App for magpie","fork":false,"url":"https://api.github.com/repos/SAAVY/magpie_demo","forks_url":"https://api.github.com/repos/SAAVY/magpie_demo/forks","keys_url":"https://api.github.com/repos/SAAVY/magpie_demo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SAAVY/magpie_demo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SAAVY/magpie_demo/teams","hooks_url":"https://api.github.com/repos/SAAVY/magpie_demo/hooks","issue_events_url":"https://api.github.com/repos/SAAVY/magpie_demo/issues/events{/number}","events_url":"https://api.github.com/repos/SAAVY/magpie_demo/events","assignees_url":"https://api.github.com/repos/SAAVY/magpie_demo/assignees{/user}","branches_url":"https://api.github.com/repos/SAAVY/magpie_demo/branches{/branch}","tags_url":"https://api.github.com/repos/SAAVY/magpie_demo/tags","blobs_url":"https://api.github.com/repos/SAAVY/magpie_demo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SAAVY/magpie_demo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SAAVY/magpie_demo/git/refs{/sha}","trees_url":"https://api.github.com/repos/SAAVY/magpie_demo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SAAVY/magpie_demo/statuses/{sha}","languages_url":"https://api.github.com/repos/SAAVY/magpie_demo/languages","stargazers_url":"https://api.github.com/repos/SAAVY/magpie_demo/stargazers","contributors_url":"https://api.github.com/repos/SAAVY/magpie_demo/contributors","subscribers_url":"https://api.github.com/repos/SAAVY/magpie_demo/subscribers","subscription_url":"https://api.github.com/repos/SAAVY/magpie_demo/subscription","commits_url":"https://api.github.com/repos/SAAVY/magpie_demo/commits{/sha}","git_commits_url":"https://api.github.com/repos/SAAVY/magpie_demo/git/commits{/sha}","comments_url":"https://api.github.com/repos/SAAVY/magpie_demo/comments{/number}","issue_comment_url":"https://api.github.com/repos/SAAVY/magpie_demo/issues/comments{/number}","contents_url":"https://api.github.com/repos/SAAVY/magpie_demo/contents/{+path}","compare_url":"https://api.github.com/repos/SAAVY/magpie_demo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SAAVY/magpie_demo/merges","archive_url":"https://api.github.com/repos/SAAVY/magpie_demo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SAAVY/magpie_demo/downloads","issues_url":"https://api.github.com/repos/SAAVY/magpie_demo/issues{/number}","pulls_url":"https://api.github.com/repos/SAAVY/magpie_demo/pulls{/number}","milestones_url":"https://api.github.com/repos/SAAVY/magpie_demo/milestones{/number}","notifications_url":"https://api.github.com/repos/SAAVY/magpie_demo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SAAVY/magpie_demo/labels{/name}","releases_url":"https://api.github.com/repos/SAAVY/magpie_demo/releases{/id}","created_at":"2015-06-17T20:14:38Z","updated_at":"2015-07-15T03:43:58Z","pushed_at":"2015-07-16T14:54:04Z","git_url":"git://github.com/SAAVY/magpie_demo.git","ssh_url":"git@github.com:SAAVY/magpie_demo.git","clone_url":"https://github.com/SAAVY/magpie_demo.git","svn_url":"https://github.com/SAAVY/magpie_demo","homepage":null,"size":140,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"SAAVY:master","ref":"master","sha":"d92c7c0252ae883d91b1f28ad427012ae5c4f18b","user":{"login":"SAAVY","id":12940854,"avatar_url":"https://avatars.githubusercontent.com/u/12940854?v=3","gravatar_id":"","url":"https://api.github.com/users/SAAVY","html_url":"https://github.com/SAAVY","followers_url":"https://api.github.com/users/SAAVY/followers","following_url":"https://api.github.com/users/SAAVY/following{/other_user}","gists_url":"https://api.github.com/users/SAAVY/gists{/gist_id}","starred_url":"https://api.github.com/users/SAAVY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SAAVY/subscriptions","organizations_url":"https://api.github.com/users/SAAVY/orgs","repos_url":"https://api.github.com/users/SAAVY/repos","events_url":"https://api.github.com/users/SAAVY/events{/privacy}","received_events_url":"https://api.github.com/users/SAAVY/received_events","type":"Organization","site_admin":false},"repo":{"id":37618406,"name":"magpie_demo","full_name":"SAAVY/magpie_demo","owner":{"login":"SAAVY","id":12940854,"avatar_url":"https://avatars.githubusercontent.com/u/12940854?v=3","gravatar_id":"","url":"https://api.github.com/users/SAAVY","html_url":"https://github.com/SAAVY","followers_url":"https://api.github.com/users/SAAVY/followers","following_url":"https://api.github.com/users/SAAVY/following{/other_user}","gists_url":"https://api.github.com/users/SAAVY/gists{/gist_id}","starred_url":"https://api.github.com/users/SAAVY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SAAVY/subscriptions","organizations_url":"https://api.github.com/users/SAAVY/orgs","repos_url":"https://api.github.com/users/SAAVY/repos","events_url":"https://api.github.com/users/SAAVY/events{/privacy}","received_events_url":"https://api.github.com/users/SAAVY/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/SAAVY/magpie_demo","description":"Demo App for magpie","fork":false,"url":"https://api.github.com/repos/SAAVY/magpie_demo","forks_url":"https://api.github.com/repos/SAAVY/magpie_demo/forks","keys_url":"https://api.github.com/repos/SAAVY/magpie_demo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SAAVY/magpie_demo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SAAVY/magpie_demo/teams","hooks_url":"https://api.github.com/repos/SAAVY/magpie_demo/hooks","issue_events_url":"https://api.github.com/repos/SAAVY/magpie_demo/issues/events{/number}","events_url":"https://api.github.com/repos/SAAVY/magpie_demo/events","assignees_url":"https://api.github.com/repos/SAAVY/magpie_demo/assignees{/user}","branches_url":"https://api.github.com/repos/SAAVY/magpie_demo/branches{/branch}","tags_url":"https://api.github.com/repos/SAAVY/magpie_demo/tags","blobs_url":"https://api.github.com/repos/SAAVY/magpie_demo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SAAVY/magpie_demo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SAAVY/magpie_demo/git/refs{/sha}","trees_url":"https://api.github.com/repos/SAAVY/magpie_demo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SAAVY/magpie_demo/statuses/{sha}","languages_url":"https://api.github.com/repos/SAAVY/magpie_demo/languages","stargazers_url":"https://api.github.com/repos/SAAVY/magpie_demo/stargazers","contributors_url":"https://api.github.com/repos/SAAVY/magpie_demo/contributors","subscribers_url":"https://api.github.com/repos/SAAVY/magpie_demo/subscribers","subscription_url":"https://api.github.com/repos/SAAVY/magpie_demo/subscription","commits_url":"https://api.github.com/repos/SAAVY/magpie_demo/commits{/sha}","git_commits_url":"https://api.github.com/repos/SAAVY/magpie_demo/git/commits{/sha}","comments_url":"https://api.github.com/repos/SAAVY/magpie_demo/comments{/number}","issue_comment_url":"https://api.github.com/repos/SAAVY/magpie_demo/issues/comments{/number}","contents_url":"https://api.github.com/repos/SAAVY/magpie_demo/contents/{+path}","compare_url":"https://api.github.com/repos/SAAVY/magpie_demo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SAAVY/magpie_demo/merges","archive_url":"https://api.github.com/repos/SAAVY/magpie_demo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SAAVY/magpie_demo/downloads","issues_url":"https://api.github.com/repos/SAAVY/magpie_demo/issues{/number}","pulls_url":"https://api.github.com/repos/SAAVY/magpie_demo/pulls{/number}","milestones_url":"https://api.github.com/repos/SAAVY/magpie_demo/milestones{/number}","notifications_url":"https://api.github.com/repos/SAAVY/magpie_demo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SAAVY/magpie_demo/labels{/name}","releases_url":"https://api.github.com/repos/SAAVY/magpie_demo/releases{/id}","created_at":"2015-06-17T20:14:38Z","updated_at":"2015-07-15T03:43:58Z","pushed_at":"2015-07-16T14:54:04Z","git_url":"git://github.com/SAAVY/magpie_demo.git","ssh_url":"git@github.com:SAAVY/magpie_demo.git","clone_url":"https://github.com/SAAVY/magpie_demo.git","svn_url":"https://github.com/SAAVY/magpie_demo","homepage":null,"size":140,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/SAAVY/magpie_demo/pulls/1"},"html":{"href":"https://github.com/SAAVY/magpie_demo/pull/1"},"issue":{"href":"https://api.github.com/repos/SAAVY/magpie_demo/issues/1"},"comments":{"href":"https://api.github.com/repos/SAAVY/magpie_demo/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/SAAVY/magpie_demo/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/SAAVY/magpie_demo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/SAAVY/magpie_demo/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/SAAVY/magpie_demo/statuses/93a0a1c3349970371faf20b653e870acd7faba45"}}}}