I use scrapy-splash with docker.
In Dockerfile I have this line to export the result in a .jl
.
CMD ["scrapy", "crawl", "quotesjs", "-o", "quote.jl"]
When I run docker-compose build
and docker-compose up
, the log informs me that:
scrapy1 | 2017-12-18 00:00:00 [scrapy.extensions.feedexport] INFO: Stored jl feed (10 items) in: quote.jl
I don't see any quote.jl
in my local folder (where the Dockerfile and the scrapy project is), so I guesse it should be in my container.
I trie to cp the content of the container with this command but without success.
docker cp containerID:. ./copy_of_container
How can I retrieve the quote.jl
file.
I am on Windows10 and I use Docker for Windows
My dockerfile
FROM python:alpine
RUN apk --update add libxml2-dev libxslt-dev libffi-dev gcc musl-dev libgcc openssl-dev curl bash
RUN pip install scrapy scrapy-splash scrapy-fake-useragent
ADD . /scraper
WORKDIR /scraper
CMD ["scrapy", "crawl", "apkmirror", "-o", "apkmirror.jl"]