Amputator can now handle multiple urls!

https://www.reddit.com/r/AmputatorBot/comments/cdw3pl/amputator_can_now_handle_multiple_urls/

created by Killed_Mufasa on 16/07/2019 at 12:00 UTC*

5 upvotes, 1 top-level comments (showing 1)

Hi folks! Today I've launched a new version of the bot, that can handle multiple (amp or no amp) urls in comments. In earlier versions, only the first link would get scanned and amputated, which is not ideal. This was pointed out to me[1] by u/jws_shadotak. I'll demo this in the comments below.

1: https://www.reddit.com/r/AmputatorBot/comments/cdajdb/bot_does_not_grab_multiple_links/

Alongside that change, the send-off message is now correctly parsed in old Reddit[2] and multiple bugs were fixed[3]. False flags and badly implemented specs are now dealt with.

2: https://github.com/KilledMufasa/AmputatorBot/pull/1

3: https://github.com/KilledMufasa/AmputatorBot/commits/master

And for those who missed it, it's now possible to summon the bot[4] by replying to an amp link with a mention of u/amputatorbot!

4: https://www.reddit.com/r/AmputatorBot/comments/cchly3/you_can_now_summon_amputatorbot/

​

Let me know if you run into a bug or if you have a suggestion for a new feature <3

&#x200B;

https://preview.redd.it/jxoj2w4wpna31.png?width=13449&amp;format=png&amp;auto=webp&amp;s=9d071833ad148eca613697a79d78a9552316cb5e

Comments

Comment by Killed_Mufasa at 16/07/2019 at 12:04 UTC

1 upvotes, 1 direct replies

So let's say I share a couple of URLs:

This is an AMP link and should be fixed: https://www.google.com/amp/s/techcrunch.com/2018/07/18/amazons-prime-day-again-became-the-biggest-sales-day-in-its-history/amp/[1][2]

1: https://www.google.com/amp/s/techcrunch.com/2018/07/18/amazons-prime-day-again-became-the-biggest-sales-day-in-its-history/amp/

2: https://www.google.com/amp/s/techcrunch.com/2018/07/18/amazons-prime-day-again-became-the-biggest-sales-day-in-its-history/amp/

This is an AMP link and should be fixed: https://fivethirtyeight.com/features/americans-say-they-would-vote-for-a-woman-but/amp/[3][4]

3: https://fivethirtyeight.com/features/americans-say-they-would-vote-for-a-woman-but/amp/

4: https://fivethirtyeight.com/features/americans-say-they-would-vote-for-a-woman-but/amp/

This is a normal link and should be ignored: https://techcrunch.com/2018/07/18/amazons-prime-day-again-became-the-biggest-sales-day-in-its-history/[5][6]

5: https://techcrunch.com/2018/07/18/amazons-prime-day-again-became-the-biggest-sales-day-in-its-history/

6: https://techcrunch.com/2018/07/18/amazons-prime-day-again-became-the-biggest-sales-day-in-its-history/

This is a normal link and should be ignored: https://fivethirtyeight.com/features/americans-say-they-would-vote-for-a-woman-but/[7][8]

7: https://fivethirtyeight.com/features/americans-say-they-would-vote-for-a-woman-but/

8: https://fivethirtyeight.com/features/americans-say-they-would-vote-for-a-woman-but/

This is a normal link (but with amp in url and amp specs in html) and should be ignored: https://developers.google.com/amp/[9][10]

9: https://developers.google.com/amp/

10: https://developers.google.com/amp/

This is an AMP link and should be fixed: https://www-cbc-ca.cdn.ampproject.org/v/s/www.cbc.ca/amp/1.1159807?usqp=mq331AQA&amp;%5C_js%5C_v=0.1#referrer=https%3A%2F%2Fwww.google.com&amp;%5C_tf=From%20%251%24s&amp;share=https%3A%2F%2Fwww.cbc.ca%2Fnews%2Fcanada%2Fpolice-officer-charged-in-cross-border-cheese-smuggling-1.1159807[11][12]

11: https://www-cbc-ca.cdn.ampproject.org/v/s/www.cbc.ca/amp/1.1159807?usqp=mq331AQA&amp;%5C_js%5C_v=0.1#referrer=https%3A%2F%2Fwww.google.com&amp;%5C_tf=From%20%251%24s&amp;share=https%3A%2F%2Fwww.cbc.ca%2Fnews%2Fcanada%2Fpolice-officer-charged-in-cross-border-cheese-smuggling-1.1159807

12: https://www-cbc-ca.cdn.ampproject.org/v/s/www.cbc.ca/amp/1.1159807?usqp=mq331AQA&amp;_js_v=0.1#referrer=https%3A%2F%2Fwww.google.com&amp;_tf=From%20%251%24s&amp;share=https%3A%2F%2Fwww.cbc.ca%2Fnews%2Fcanada%2Fpolice-officer-charged-in-cross-border-cheese-smuggling-1.1159807