When a website with useful information has a shitty UI, what is the answer to that problem in the mind of someone who is full-throated anti-scraper bot? I recently asked one such person. I said not only is the UI a shitty presentation, but the search mechanism failed to anticipate the criteria I need to search on in combination with other criteria.

As far as I can tell, the only remedy when the dataset is not shared is to scrape the data. But I asked because I am also annoyed with the messy and tedious effort of writing a scraper bot. The answer I got was:

❝you go to the webmaster and ask them for what you need. Ask for the search form to be changed to support the query you need.❞

I responded: what if I need to cross-reference the db of site A to the data of site B in order to do the query I need?

The answer to that: (crickets)

Is it realistic to ask a webadmin for features? I have never actually seen that succeed. Example, the town newsletter is jailed in some shitty interface by a 3rd-party that forces javascript that does a page-turning animation. No way to simply download the PDF. I think they think simple URLs to PDFs are too complex for simple users.

In any case, they refused the request. They first simply ignored the request. I had do so some arm-twisting just to get a response. They ultimately would not provide a way to download the town’s PDF newsletter. I’m not asking for much work. The logic they have implemented is mind-bogglingly more complex than a simple URL to a PDF.

In any case, considering I am opposed to doing unpleasant manual labor to use a shitty UI (especially if I must run untrusted proprietary js and then [if it even runs] be forced through an animation of every page turned). I am simultaneously not thrilled about having to write a scraper to get around it, I wonder if someone with the anti-bot mindset can give a better answer than asking the webmaster to take an action requested by some random stranger. I mean, general approaches, not necessarily specific to the PDF example.

    • evenwichtOPM
      link
      fedilink
      arrow-up
      1
      arrow-down
      1
      ·
      edit-2
      2 days ago

      Have you considered that if someone is asking for alternatives to scraping, they might be looking for alternatives to scraping? Which consequently satisfies a webmaster’s preference to not have their site scraped?

      “crickets” – do you know what that means? Find “crickets” in the post, and give a better answer. It’s like a “fill in the blank” exercise you’ve seen in elementary school.

      Your question is trivially answered. The existence and contents of a file called robots.txt indicates the webmaster’s preferences.

      Have you considered that if a webmaster does not want people scraping their site, apart from creating a robots.txt, they can more effectively get what they want by:

      • posting a db dump
      • posting API docs
      • making a good UI (incl. taking requests as needed to make that happen)
      • not jailing stuff, like PDFs and other media trapped inside of some javascript garbage

      ?

      Competent webmasters do those things. But the post is not about the competent ones.