+ 12 like - 0 dislike
112 views

I modified scripts form MathOverflow to scrape arXiv links from question threads and to submit them so one can easily access a question citing a preprint. A lot of thanks to Anton Geraschenko and Scott Morrison for writing the original version and sharing it with us.

arXiv has accepted the first batch, see e.g. http://arxiv.org/tb/quant-ph/0210062. I've sent the rest.

Besides saying 'wow, it works!' I would like to underline two things:

• it is even more beneficial to provide arXiv links (http://arviv.org/abs/...),
• it would be good to be careful when it comes to the titles. If a title is misformatted or misspelled - it is important to fix it ASAP (not to generate untidy trackbacks).
This post has been migrated from (A51.SE)
Does it work with old style links, à la xxx.lanl.gov ?

This post has been migrated from (A51.SE)
Nice +1!, However, many people link to [inSpire](http://inspirehep.net/) ([e.g.](http://theoreticalphysics.stackexchange.com/q/254/70)) instead of arXiv. Can the script be extended to extract the arXiv number from the inSpire link (if it exists) and then create the arXiv trackback?

This post has been migrated from (A51.SE)
@MateusAraújo Yes arxivSynonyms = '(?:ar[Xx]iv|front\.math\.ucdavis|xxx\.lanl\.gov)'. @Simon: Everything is possible, but personally I would prefer to grab only arXiv links. The main reason behind is it involves scanning other page (which may or may not contain arXiv links) which may be more error prone. Bear in mind that the current script scans only links so it is not a greedy _send everything what looks like arXivID_ but it sends only things explicitly pointing to arXiv. Of course, it is not a problem to add to a question link to arXiv as well.

This post has been migrated from (A51.SE)

+ 3 like - 0 dislike

Thanks for doing this, excellent work -- is it something that could be submitted to Stack Apps under the scripts tab?

http://stackapps.com/?tab=scripts

This post has been migrated from (A51.SE)
answered Jan 20, 2012 by (0 points)
Thanks. In the current form it is a Shell/Python script accessing SE via http. So (I guess) before submitting it I should rewrite it to use SE API. Moreover, I made only some modifications to fit the structure of TP.SE (and perhaps other SE2.0 as well); the main authors are Anton and Scott, so I need to ask them if the like the idea.

This post has been migrated from (A51.SE)
ah, so it is an app then. http://stackapps.com/?tab=apps Well, if you can, consider listing it in the directory so others can find it and assist!

This post has been migrated from (A51.SE)
@JeffAtwood: We got the code from the MathOverflow folks, so it seems like it would be inappropriate for us to take it upon ourselves to share their code.

This post has been migrated from (A51.SE)
I would *love* to see this script! @JoeFitzsimons and Piotr: Do you think the MathOverflow peeps would be up for you sharing this version if asked? Any licensing issues etc?

This post has been migrated from (A51.SE)
@MarkS.Everitt I asked Anton & Scott and they are happy to share it under the [MIT Licence](http://en.wikipedia.org/wiki/MIT_License). :)

This post has been migrated from (A51.SE)
@PiotrMigdal: That's wonderful news!

This post has been migrated from (A51.SE)

 Please use answers only to (at least partly) answer questions. To comment, discuss, or ask for clarification, leave a comment instead. To mask links under text, please type your text, highlight it, and click the "link" button. You can then enter your link URL. Please consult the FAQ for as to how to format your post. This is the answer box; if you want to write a comment instead, please use the 'add comment' button. Live preview (may slow down editor)   Preview Your name to display (optional): Email me at this address if my answer is selected or commented on: Privacy: Your email address will only be used for sending these notifications. Anti-spam verification: If you are a human please identify the position of the character covered by the symbol $\varnothing$ in the following word:p$\hbar\varnothing$sicsOverflowThen drag the red bullet below over the corresponding character of our banner. When you drop it there, the bullet changes to green (on slow internet connections after a few seconds). To avoid this verification in future, please log in or register.