C
C#2y ago
Gekidow

❔ C# Rewrite ODT Links and download associated files

Hello, I have a problem for several weeks on my c# code, my application is used to read an ODT file and download all the documents (pointed by links in this file). The problem is that when I run my program, I have the right number of files that are downloaded and the number of links present in the document, but the downloaded files are not PDFs but are 18kb files with the code inside the code of an identification page. I can't retrieve and store the authentication cookie to allow it to be used for downloads I linked my code
5 Replies
JakenVeina
JakenVeina2y ago
so, the links you're trying to download are, like, website URLs? but it's not working cause the website is expecting you to auth?
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Gekidow
GekidowOP2y ago
yes exactly
JakenVeina
JakenVeina2y ago
what you're doing amounts to HTML scraping if the website doesn't provide you with a non-authenticated way to download these files, or a dedicated API, that's them not supporting the ability for you to programmatically scrape these files
Accord
Accord2y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server