Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding filter on PublishedAt date #210

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

Dini001
Copy link

@Dini001 Dini001 commented Dec 14, 2023

Adding command line option "published-after" and "published-before" to filter post.

Solve #49, #191
May remove the need for #69
Partial fix for #170

@Crazyman1066
Copy link

how do i use the published after and published before line? is it like this ./PatreonDownloader.App.exe --url https://www.patreon.com/c/Multiverse_Ai/posts published-after December

@Dini001
Copy link
Author

Dini001 commented Dec 17, 2024

how do i use the published after and published before line? is it like this ./PatreonDownloader.App.exe --url https://www.patreon.com/c/Multiverse_Ai/posts published-after December

The parameter is a DateTime. Write the date in your locale format

For me it's yyyy-MM-dd HH:mm:ss so it look like this
./PatreonDownloader.App.exe --url https://www.patreon.com/<username>/posts --published-after 2024-12-16
./PatreonDownloader.App.exe --url https://www.patreon.com/<username>/posts --published-after "2024-12-16 18:12:34"

I usualy use it on the last day of the month, so I use powershell to get the value.
./PatreonDownloader.App.exe --url https://www.patreon.com/<username>/posts --published-after (Get-Date -Day 1).AddDays(-1).ToString("yyyy-MM-dd");

@Crazyman1066
Copy link

Crazyman1066 commented Dec 17, 2024

i get this error. does a version of powershell matter and i download the latest release 28
Desktop Screenshot 2024 12 16 - 23 25 40 58
Desktop Screenshot 2024 12 17 - 00 21 02 12

@Dini001
Copy link
Author

Dini001 commented Dec 17, 2024

i get this error. does a version of powershell matter and i download the latest release 28

This PR hasn't been merge. If you want to use that flag you gonna have to use the version from my fork of the repo

@Crazyman1066
Copy link

Crazyman1066 commented Dec 17, 2024

how do i get the your fork of the repo

@Dini001
Copy link
Author

Dini001 commented Dec 17, 2024

how do i get the your fork of the repo

You can find my fork here
image

Unfortunatly I didn't make release, you gonna have to build it from source.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants