emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Source code to check URLs in an org mode document?
@ 2014-04-05  2:23 Grant Rettke
  2014-04-05 13:50 ` John Kitchin
  0 siblings, 1 reply; 2+ messages in thread
From: Grant Rettke @ 2014-04-05  2:23 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

Hi,

One of my documents has ~200 HTML links in the footnotes.

Wondering how folks check the links?

My goal is that:
1. Each footnote with a URL is evaluated
2. They are evaluated to determine whether the URL is valid
3. Check whether or not the page exists
4. Add some indicate in the footnote that it was found not to be up on
some date.

This might require some custom coding, no?

Regards,

Grant Rettke | AAAS, ACM, AMA, COG, FSF, IEEE, Sigma Xi
grettke@acm.org | http://www.wisdomandwonder.com/
“Wisdom begins in wonder.” --Socrates
((λ (x) (x x)) (λ (x) (x x)))
“Life has become immeasurably better since I have been forced to stop
taking it seriously.” --Thompson

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Source code to check URLs in an org mode document?
  2014-04-05  2:23 Source code to check URLs in an org mode document? Grant Rettke
@ 2014-04-05 13:50 ` John Kitchin
  0 siblings, 0 replies; 2+ messages in thread
From: John Kitchin @ 2014-04-05 13:50 UTC (permalink / raw)
  To: Grant Rettke; +Cc: emacs-orgmode@gnu.org

[-- Attachment #1: Type: text/plain, Size: 1418 bytes --]

You can parse the buffer, and run some code on all of the links. I did
something like this here
http://kitchingroup.cheme.cmu.edu/blog/2013/09/28/Changing-links-to-files-so-they-work-in-a-blog/for
another reason. You could adapt that to do your link validation. I
guess you will need to send a request to the url to see if it is valid.

John

-----------------------------------
John Kitchin
Associate Professor
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
http://kitchingroup.cheme.cmu.edu



On Fri, Apr 4, 2014 at 10:23 PM, Grant Rettke <gcr@wisdomandwonder.com>wrote:

> Hi,
>
> One of my documents has ~200 HTML links in the footnotes.
>
> Wondering how folks check the links?
>
> My goal is that:
> 1. Each footnote with a URL is evaluated
> 2. They are evaluated to determine whether the URL is valid
> 3. Check whether or not the page exists
> 4. Add some indicate in the footnote that it was found not to be up on
> some date.
>
> This might require some custom coding, no?
>
> Regards,
>
> Grant Rettke | AAAS, ACM, AMA, COG, FSF, IEEE, Sigma Xi
> grettke@acm.org | http://www.wisdomandwonder.com/
> “Wisdom begins in wonder.” --Socrates
> ((λ (x) (x x)) (λ (x) (x x)))
> “Life has become immeasurably better since I have been forced to stop
> taking it seriously.” --Thompson
>
>

[-- Attachment #2: Type: text/html, Size: 2100 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-04-05 13:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-05  2:23 Source code to check URLs in an org mode document? Grant Rettke
2014-04-05 13:50 ` John Kitchin

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).