GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Lewis Cowles (lewiscowles1986@phpc.social)'s status on Monday, 23-Oct-2023 02:40:08 JSTLewis CowlesLewis Cowles
    in reply to
    • Eaton

    @eaton
    I sometimes use Pup to get the contents of pages I curl by CSS-selector. It's sub-process, so not applicable for your use-case, but for example; if someone, like the UK government were to store all registered company data on a HTML web-page...

    https://github.com/Lewiscowles1986/OpenData/blob/5b8793ede695ef3590f11e19a08b064370629000/companies-house/run.sh#L4-L5 is an example of the current selector to get a URL value.

    There is no exit code for a failed match though, so using `[[ -z "${yourvar}" ]]` can be a good way to catch empty content.

    In conversationMonday, 23-Oct-2023 02:40:08 JST from phpc.socialpermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.