all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Óscar Fuentes" <ofv@wanadoo.es>
To: GH <project@gnuhacker.org>
Cc: Help GNU Emacs <help-gnu-emacs@gnu.org>
Subject: Re: functions to download mailing list archives
Date: Tue, 14 Jun 2022 00:09:38 +0200	[thread overview]
Message-ID: <87sfo8b4gt.fsf@telefonica.net> (raw)
In-Reply-To: <87ilp45rtp.fsf@gnu.org> (GH's message of "Mon, 13 Jun 2022 20:41:38 +0200")

GH <project@gnuhacker.org> writes:

> Óscar Fuentes <ofv@wanadoo.es> writes:
>> What I was suggesting was something like this:
>
>> (defun lists-mbox-recursive-url-list (url-list)
>>   (dolist (url url-list)
>>     ;; get the url's content
>
> yes, but the problem now is to get the urls, all mbox archive urls

You already solved that problem on your previous code, didn't you? On my
proposed variant it works the same.

>>     ;; do wathever you want with the url's content (save it, ...)
>>     ;; for each URL of interest inside the content:
>>       ;; The `t' at the end of add-to-list means to append the new element:
>>       (add-to-list 'url-list new-url t)))
>
>> (lists-mbox-recursive-url-list (list "https://lists.gnu.org/whatever"))
>
> I use recursion to get urls

No, you use recursion to process the pages pointed by the urls you got
from a given page.

Now, instead of recursion you add the urls to a list, which acts as a
queue, and get the urls to be processed from that list at the same time
you add new urls to the end of the list.



  reply	other threads:[~2022-06-13 22:09 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-12 22:30 functions to download mailing list archives GH
2022-06-12 23:04 ` Óscar Fuentes
2022-06-13 12:43   ` GH
2022-06-13 16:46     ` Óscar Fuentes
2022-06-13 18:41       ` GH
2022-06-13 22:09         ` Óscar Fuentes [this message]
2022-06-14  9:58           ` GH
2022-06-14 10:26             ` Emanuel Berg
2022-06-16  0:13 ` GH
2022-06-16  4:23   ` Emanuel Berg
2022-06-16 12:27     ` GH

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sfo8b4gt.fsf@telefonica.net \
    --to=ofv@wanadoo.es \
    --cc=help-gnu-emacs@gnu.org \
    --cc=project@gnuhacker.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.