It's scrapeable, just you never know when it might break or what other urls pasted to the site might do. However an hours work gives this:
http://fmt.argh.tc/poster.php?campaign=http://www.fixmytransport.com/campaigns/provide-step-free-access-to-the-northbound-platfor (campaign picked at random) and by accident I discovered that http://www.fixmytransport.com/campaigns/[ID] works which allows for short urls and cleaner QR codes. Nothing fancy, no images, custom fonts or colour, more proof of concept. Ryan Cullen http://blog.artesea.co.uk @artesea <http://twitter.com/artesea> On Wed, Sep 7, 2011 at 21:46, Tom Steinberg <[email protected]> wrote: > Hi all, > > Thanks for expressing an interest, and so quickly! > > The reason I suggested screen scraping was because I was really hoping > this might be something that could be done without knocking Louise off > the 300+ open tickets she has in her github to do list at the moment! > > However, if it can't really be done reasonably without an API then > don't worry, it was just a long shot. > > night, > > Tom > > On 7 September 2011 21:33, Ryan Cullen <[email protected]> wrote: > > Like Sam said if you could add something simple like returning json by > > appending .json to the end that would be great. > > Also looking at the source I can see Campaign IDs, do you either have an > API > > for ID->slug or a different url format which accepts the ID > > eg http://www.fixmytransport.com/campaign.php?id=146 as then the ID > could be > > used in the short url? > > Ryan Cullen > > > > http://blog.artesea.co.uk > > @artesea > > > > > > On Wed, Sep 7, 2011 at 19:54, Ryan Cullen <[email protected]> > wrote: > >> > >> Tom is there an API to get the campaign info from, instead of scraping? > >> Either way pretty easy to knock something up (just not sure I'm awake > >> enough to do it tonight before someone else does it) > >> > >> Ryan > >> > >> On Sep 7, 2011 7:42 PM, "Tom Steinberg" <[email protected]> wrote: > >> > Hi everyone, > >> > > >> > This is one of my occasional 'would anyone feel like hacking this as a > >> > volunteer?' appeals. Here goes... > >> > > >> > I'm spending a fair bit of time leaving comments on FixMyTransport > >> > problems, suggesting what people might do in order to get the things > >> > they want fixing, fixed. > >> > > >> > Quite often, the honest answer is that the best thing that they can > >> > probably do is print a page of A4 with an appeal, and stick it on/next > >> > to the bus stop where they wait for their problematic bus. > >> > > >> > What would be REALLY COOL is this - a web page where I could stick the > >> > URL of a campaign page, which it would then scrape in order to produce > >> > a PDF or easy-to-print HTML page containing: > >> > > >> > a) The appeal text printed really big, saying something like "Please > >> > support my attempt to persuade Arriva to run this bus on time" > >> > > >> > b) The more details text printed slightly smaller > >> > > >> > c) An easy to read short URL, printed quite big - along with some > >> > words which say "To sign up on your phone, open this URL" > >> > > >> > d) A QR code for the cool kids. > >> > > >> > If someone would hack this for me then me, Myf and the emerging new > >> > generation of volunteers could use it all the time make nice little > >> > printable pages for FMT users, which we'd post as links on their > >> > pages. > >> > > >> > Is there anyone in here who would be kind enough to give this a go? Or > >> > a pair of people who might work together? > >> > > >> > thanks! > >> > > >> > Tom > >> > > >> > _______________________________________________ > >> > developers-public mailing list > >> > [email protected] > >> > > >> > > https://secure.mysociety.org/admin/lists/mailman/listinfo/developers-public > >> > > >> > Unsubscribe: > >> > > https://secure.mysociety.org/admin/lists/mailman/options/developers-public/ryancullen%40artesea.co.uk > > > > > > _______________________________________________ > > developers-public mailing list > > [email protected] > > > https://secure.mysociety.org/admin/lists/mailman/listinfo/developers-public > > > > Unsubscribe: > > > https://secure.mysociety.org/admin/lists/mailman/options/developers-public/tom%40tomsteinberg.co.uk > > > > _______________________________________________ > developers-public mailing list > [email protected] > https://secure.mysociety.org/admin/lists/mailman/listinfo/developers-public > > Unsubscribe: > https://secure.mysociety.org/admin/lists/mailman/options/developers-public/ryancullen%40artesea.co.uk >
_______________________________________________ developers-public mailing list [email protected] https://secure.mysociety.org/admin/lists/mailman/listinfo/developers-public Unsubscribe: https://secure.mysociety.org/admin/lists/mailman/options/developers-public/archive%40mail-archive.com
