Re: I need help getting a web page with curl

2021-10-13 Thread ToddAndMargo via users
On 10/13/21 00:28, Todd Zullinger wrote: ToddAndMargo via users wrote: On 10/12/21 21:55, Gordon Messmer wrote: Well, the whole page is dynamically generated.  It's more accurate and meaningful to say that the commit message and commit ID (the revision) come from the API, which you can query wi

Re: I need help getting a web page with curl

2021-10-13 Thread Todd Zullinger
ToddAndMargo via users wrote: > On 10/12/21 21:55, Gordon Messmer wrote: >> Well, the whole page is dynamically generated.  It's more accurate and >> meaningful to say that the commit message and commit ID (the revision) >> come from the API, which you can query with curl and jq. > > Oh ya. No fo

Re: I need help getting a web page with curl

2021-10-12 Thread ToddAndMargo via users
On 10/12/21 21:55, Gordon Messmer wrote: On 10/12/21 02:13, ToddAndMargo via users wrote: I wrote a program to go out to web pages and check revisions on about 70 programs that I support at my customer sites. Well, I have a couple of questions...  The commands and output that you posted ear

Re: I need help getting a web page with curl

2021-10-12 Thread Gordon Messmer
... somewhat amusing, you and I have had almost exactly this conversation before: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org/message/TH2MUWDQHD2T7ZAAOA75K3AYO5W2ZECF/ ___ users mailing list -- users@lists.fedoraproject

Re: I need help getting a web page with curl

2021-10-12 Thread Gordon Messmer
On 10/12/21 02:13, ToddAndMargo via users wrote: I wrote a program to go out to web pages and check revisions on about 70 programs that I support at my customer sites. Well, I have a couple of questions...  The commands and output that you posted earlier pulled some text from a commit messag

Re: I need help getting a web page with curl

2021-10-12 Thread ToddAndMargo via users
On 10/11/21 22:20, Gordon Messmer wrote: On 10/11/21 18:02, ToddAndMargo via users wrote: This simulates what I came up with in my actual code: $ curl --silent 'https://gitlab.freedesktop.org/spice/win32/spice-nsis/-/commits/master' | raku -ne 'my Str $x=slurp(); $x~~s/.*? "rebase on " //; $x

Re: I need help getting a web page with curl

2021-10-11 Thread Gordon Messmer
On 10/11/21 18:02, ToddAndMargo via users wrote: This simulates what I came up with in my actual code: $ curl --silent 'https://gitlab.freedesktop.org/spice/win32/spice-nsis/-/commits/master' | raku -ne 'my Str $x=slurp(); $x~~s/.*? "rebase on " //; $x~~s/ ("") .* //; print "$x\n";' 0.164

Re: I need help getting a web page with curl

2021-10-11 Thread ToddAndMargo via users
On 10/10/21 15:25, ToddAndMargo via users wrote: Hi All, Fedora 33 curl-7.76.1-12.fc34.x86_64 This page show something different in Firefox and Vivaldi that I can get with curl. https://gitlab.freedesktop.org/spice/win32/spice-nsis/-/tree/master $ curl https://gitlab.freedesktop.org/spice/wi

Re: I need help getting a web page with curl

2021-10-11 Thread Gordon Messmer
On Sun, Oct 10, 2021 at 5:43 PM ToddAndMargo via users wrote: > Any way to get git to show me the revision > without downloading the turkey? Yes, use the API: https://docs.gitlab.com/ee/api/commits.html The Project ID is listed on the project page (67, in this case): https://gitlab.freedesktop.o

Re: I need help getting a web page with curl

2021-10-11 Thread ToddAndMargo via users
On 10/10/21 17:14, Sam Varshavchik wrote: ToddAndMargo via users writes: Hi All, Fedora 33 curl-7.76.1-12.fc34.x86_64 This page show something different in Firefox and Vivaldi that I can get with curl. It's quite common for a web site to inspect the headers from the web client, digest what

Re: I need help getting a web page with curl

2021-10-10 Thread ToddAndMargo via users
On 10/10/21 18:59, Sam Varshavchik wrote: ToddAndMargo via users writes: On 10/10/21 18:08, Sam Varshavchik wrote: Looks like this entire git repo is only 348kb. Now, with the linux-kernel repo this would probably be a consideration but not for something as small as this. I am being a per

Re: I need help getting a web page with curl

2021-10-10 Thread Sam Varshavchik
ToddAndMargo via users writes: On 10/10/21 18:08, Sam Varshavchik wrote: Looks like this entire git repo is only 348kb. Now, with the linux-kernel repo this would probably be a consideration but not for something as small as this. I am being a perfectionist. I will drop back to this if

Re: I need help getting a web page with curl

2021-10-10 Thread ToddAndMargo via users
On 10/10/21 18:08, Sam Varshavchik wrote: ToddAndMargo via users writes: On 10/10/21 17:14, Sam Varshavchik wrote: You're trying to reinvent the wheel. This a web interface to a plain, garden variety, git repository. Forget curl. Use git. $ git clone https://gitlab.freedesktop.org/spice/win

Re: I need help getting a web page with curl

2021-10-10 Thread Sam Varshavchik
ToddAndMargo via users writes: On 10/10/21 17:14, Sam Varshavchik wrote: You're trying to reinvent the wheel. This a web interface to a plain, garden variety, git repository. Forget curl. Use git. $ git clone https://gitlab.freedesktop.org/spice/win32/spice-nsis.git Cloning into 'spice-nsis

Re: I need help getting a web page with curl

2021-10-10 Thread Jonathan Billings
On Oct 10, 2021, at 20:43, ToddAndMargo via users wrote: > > Any way to get git to show me the revision > without downloading the turkey? You can clone a shallow copy with: git clone —depth 1 $GIT_URL It will be a much smaller download, and will have only the latest reference. — Jonatha

Re: I need help getting a web page with curl

2021-10-10 Thread ToddAndMargo via users
On 10/10/21 17:14, Sam Varshavchik wrote: You're trying to reinvent the wheel. This a web interface to a plain, garden variety, git repository. Forget curl. Use git. $ git clone https://gitlab.freedesktop.org/spice/win32/spice-nsis.git Cloning into 'spice-nsis'… remote: Enumerating objects: 46

Re: I need help getting a web page with curl

2021-10-10 Thread Sam Varshavchik
ToddAndMargo via users writes: Hi All, Fedora 33 curl-7.76.1-12.fc34.x86_64 This page show something different in Firefox and Vivaldi that I can get with curl. It's quite common for a web site to inspect the headers from the web client, digest what's in the header that's sent by the client

I need help getting a web page with curl

2021-10-10 Thread ToddAndMargo via users
Hi All, Fedora 33 curl-7.76.1-12.fc34.x86_64 This page show something different in Firefox and Vivaldi that I can get with curl. https://gitlab.freedesktop.org/spice/win32/spice-nsis/-/tree/master $ curl https://gitlab.freedesktop.org/spice/win32/spice-nsis/-/tree/master > eraseme.html I a