You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your command just writes a file named .txt in the target directory. --keep-dirs is useless if you download files from the internet, there are no directory to keep. It is best used with data already available on disk.
I see. I was hopping it would help with the file naming even there is no directory to keep.
Thank you for the clarification.
But, I think it should not block the extraction even if it doesn't do anything. A little tweaking of the code might me useful so that the fetching will proceed while the option is ignored. Alternatively, a little disclaimer on the user manual can help the user not to use the option for crawling.
I am trying on the command line. Turning on the "--keep-dirs" option seems to stop trafilatura from extracting (fetching).
trafilatura -i links/file-with-links.txt --output-dir textOut
<-- produces an output (as expected).But,
trafilatura -i links/file-with-links.txt --keep-dirs --output-dir textOut
doesn't produce anything.I am using version 1.12.2 on the mac with python 3.13.
The text was updated successfully, but these errors were encountered: