Download multiple PDF files using wget fail (403 error)

I am trying to download multiple PDF files from a web page (I am using Mac OS X 10.6.1). Here is an example of what I get (e.g. www.website.org):

~> wget -r -A.pdf http://www.website.org/web/

--2009-10-09 19:04:53--  http://www.website.org/web/
Resolving www.website.org... 208.43.98.107
Connecting to www.website.org|208.43.98.107|:80... connected.
HTTP request sent, awaiting response... 403 Forbidden
2009-10-09 19:04:54 ERROR 403: Forbidden.

~> 

How can I overcome this 403 error? Should I use curl instead?

+3
source share
1 answer

You may not have permission to access the directory http://www.website.org/web/. Use this link in your web browser and make sure that you are redirected to a more specific URL. Then use this URL as input for wget.

0
source

Source: https://habr.com/ru/post/1719740/


All Articles