Saratov Linux User Group
 help / color / mirror / Atom feed
From: "Ivan A. Melnikov" <ivan.a.melnikov@gmail.com>
To: faust@gmx.com,  Saratov Linux User Group Maillist <sarlug@lists.lug.ru>
Subject: Re: [Sarlug] Выкачивание библиотек SharePoint
Date: Fri, 16 Jan 2015 18:19:21 +0300
Message-ID: <54B92BF9.3010107@gmail.com> (raw)
In-Reply-To: <54B90A54.2000809@gmx.com>

On 16.01.2015 15:55, NIR wrote:
> Всем привет.
> 
> Столкнулся с задачей: выкачать из определённой библиотеки SharePoint все
> файлы. Файлов порядка 11000. Есть упрощающая задачу штука: список файлов
> (неполный). Желание автоматизировать и ускорить процесс родило костыль:
> 
> Есть простой скрипт вида для загрузки одного файла:
> #!/bin/sh
> cd "/home/nir/Work/FLC/Actual/First run/Drawings/Siterip";
> curl -i --ntlm -k -O -G --sslv3 -A "Mozilla/5.0 (Windows; U; Windows NT
> 5.1; en-US) AppleWebKit/525.13 (KHTML, like Gecko) Chrome/0.A.B.C
> Safari/525.13" --user "MyUsername:MyPassword"
> "https://sharepoint.website.com/sites/blah/blah/Library/$1"
> 
> Есть скрипт на Tcl, который переваривает файл со списком выгружаемых
> документов и по одному их качает. Таким образом выгрузил порядка 4500
> документов из 11000.
> 
> Проблемы:
> 1) curl гадит в начало файлов HTTP-заголовками, которые придётся
> подчищать ещё одним костылём.

Так уберите опцию -i. Вы сами просили его гадить, вот он и гадит.

> 2) Как выкачать все файлы из библиотеки, если я не знаю их названий? Ещё
> библиотеке есть подпапки, в которые было бы неплохо зайти и тоже всё
> выкачать.

Возможно, вам помогут wget, aria2...

> 
> Заранее спасибо.
> 
> -- 
> С уважением, Игорь Чудов
> Энгельсский Инструментальный Завод "ЭИЗ"
> Сайт: http://nir.org.ru/
> Телефон: +7 937 266-51-34
> 
> 
> 
> _______________________________________________
> Sarlug mailing list
> Sarlug@lists.lug.ru
> https://lists.lug.ru/mailman/listinfo/sarlug
> 


-- 
WBR,
Ivan A. Melnikov


       reply	other threads:[~2015-01-16 15:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-16 15:19 ` Ivan A. Melnikov [this message]
2015-01-21  5:52                 ` Aleksei Sinitsyn

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=54B92BF9.3010107@gmail.com \
    --to=ivan.a.melnikov@gmail.com \
    --cc=faust@gmx.com \
    --cc=sarlug@lists.lug.ru \
    /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

Saratov Linux User Group

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sarlug/0 sarlug/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 sarlug sarlug/ http://lore.altlinux.org/sarlug \
		sarlug@lists.lug.ru sarlug@lug.ru
	public-inbox-index sarlug

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sarlug


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git