IRC Export (reformatted output mod)

Export HIT information for IRC chat

Author
clickhappier
Daily installs
0
Total installs
238
Ratings
0 0 0
Version
3.10.1c
Created
2014-11-03
Updated
2015-10-05
License
N/A
Applies to

* Important note: Same as Great HIT Export, you should ensure that this script runs before any preview/accept/hoard-type link-splitting/changing scripts in your Greasemonkey/Tampermonkey execution order. Update: And it's now become apparent that if you have been using 'Preview and Accept MTurk HITs' specifically, it may not work regardless of the execution order; if so, change to Cristo's 'Preview, Accept and Hoard' and it should work.

Cristo made a nice script a while back to copy a HIT's info in a format more convenient for posting in MTurk-related IRC chat rooms. It adds a button labeled 'IRC' next to each HIT title in an MTurk search results list, just like the 'vB' button added by the forum export script Great HIT Export. Note that GHE opens a display showing what you're copying and then you have to press ctrl+c yourself; the IRC export script just copies the information to your clipboard directly after you click its button, and you should go paste it somewhere to see it. Update: as of v3.4c, IRC Export opens a dialog box like GHE's too!

I had some suggestions about the formatting that weren't implemented, so I made a modified version some time ago. With the release of v3.0c, I updated mine to include features he added later, and also included the fix for the TO mirror server changing URLs on Oct 27, 2014 (without that, his no longer worked at all, leading to the need for this release).

The output looks like this:

MASTERS • Requester: Todd Mosier http://ns4t.net/hqR0I • HIT: Find Images of these Real Estate Agents http://ns4t.net/oB9KU • Pay: $0.08 • Avail: 162 • Limit: 7 minutes • TO: Pay=2.4 Fair=4.3 Comm=2.3 http://ns4t.net/DauLD • PandA: http://ns4t.net/eFmB8

Updates:
v3.1c, 01-15-2015: improved handling of 'notqualified' links, when exporting HITs you don't qualify for yourself.
v3.2c, 01-26-2015: handling of logged-out usage (note: some HITs have no way to get a preview link when logged out, so the requester link is substituted on those).
v3.3c, 01-29-2015: It will now automatically try another URL shortening service (tny.im) when your IP has reached goo.gl's temporary usage limits, and waits a small delay between shortening requests to make it less likely to hit the limits. If you still manage to hit the limits of both shortening services (slow down! ;-P ) or they're otherwise unreachable, it will say "(x)" in place of the unavailable shortened link, and append the unshortened preview link as a last resort if the shortened preview link had to be '(x)'ed.
v3.4c, 02-13-2015: changes to URL shortening service fallbacks (added a new MTurk-only URL shortening service hosted by Tjololo at ns4t.net), and now displays a dialog box to (re-)copy the text from yourself (like Great HIT Export does).
v3.5c, 02-23-2015: compatibility improvements: this script can now be used with 'mmmturkeybacon Last HITs Previewed', if 'Last HITs Previewed' comes first in your execution order.
v3.6c, 03-08-2015: added error handling so script shouldn't hang when servers are unreachable (some patience is still necessary sometimes, but it does finish if you let it), and failover to main TO server when mirror is down.
v3.7c, 05-01-2015: added previewandaccept (PandA) link at end of export, and adjusted URL-shortening server order since goo.gl is no longer viable since surpassing apparent undocumented per-domain limits months ago.
v3.8c, 06-02-2015: on 6/2/2015, Amazon screwed with stuff that messed up exporting HITs you don't qualify for; this update fixes that.
v3.9c, 07-21-2015: modifications to handle Amazon's 7/20/2015 removal of requester ID and HITs Available data when logged out, and reworked a lot of code readability.
v3.10c, 08-24-2015: implemented use of the faster bulk-shorten feature that Tjololo added to his URL-shortening server.
v3.10.1c, 10-05-2015: TO server sequence swap due to protracted mirror downtime.

.

Old formatting comparisons:

I originally made a modified version to make the output look something like this (though that earlier version had the direct links rather than shortened ones):

< yournickhere > Requester: Daniel Leffel http://goo.gl/F72VK7 • HIT: Crop a photo http://goo.gl/RrPWIE • TO: Pay=2.9 Fair=3.9 Comm=2.5 http://goo.gl/5CL1Fa • Pay: $0.01
instead of something like this (his version):
< yournickhere > Daniel Leffel <> http://goo.gl/F72VK7
< yournickhere > HIT: Crop a photo <> http://goo.gl/RrPWIE
< yournickhere > P(2.9)-F(3.9)-C(2.5) <> http://goo.gl/5CL1Fa
< yournickhere > $0.01
(imagine several of those in a row, running together)

As of the 3.0/3.0c version, mine makes output look like this:
< yournickhere > MASTERS • Requester: Daniel Leffel http://goo.gl/F72VK7 • HIT: Crop a photo http://goo.gl/RrPWIE • Pay: $0.01 • Avail: 8 • Time Limit: 15 minutes • TO: Pay=2.9 Fair=3.9 Comm=2.5 http://goo.gl/5CL1Fa
instead of this (his version):
< yournickhere > MASTERS
< yournickhere > Daniel Leffel <> http://goo.gl/F72VK7 HIT: Crop a photo <> http://goo.gl/RrPWIE P(2.9)-F(3.9)-C(2.5) <> http://goo.gl/5CL1Fa Pay $0.01 <> Available 8 <> Time 15 minutes
Mine also automatically omits the first label on non-Masters HITs instead of saying 'Regular' on those.



See also: my MTG thread post; and related scripts CH Plaintext HIT Export and the forum export Great HIT Export. It is also incorporated into HIT Scraper With Export v1.5.9+.


For many more MTurk-related userscripts, see the Turking Scripts set.