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
    Ben Zanin (gnomon@mastodon.social)'s status on Friday, 27-Dec-2024 12:52:27 JSTBen ZaninBen Zanin
    in reply to
    • nev

    @nev you could, yep!

    In fact you wouldn't even have to mess with tee, process substitution alone would work - something like:

    result=''
    verbose=1
    url_next='https://whatever_apicall_to_get_page1'
    until [[ ! $url_next == http* ]]; do
    result=$(curl --dump-header '.headers' --url "$url_next")
    if [[ $verbose == 1]]; then echo "$result"; fi
    # url_next=$(grep ... '.headers.') # step to get the next link, or nothing
    # step to do whatever with "$result" here
    done

    In conversationabout 6 months ago from mastodon.socialpermalink

    Attachments


  • 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.