io
290bb33538
use external pleroma.py
5 months ago
Kay Faraday
f7cc00e443
fetch_posts.py: remove lots of dead code
5 months ago
Kay Faraday
f58d85635a
fetch_posts.py: support Wordpress ActivityPub plugin
5 months ago
Kay Faraday
5e50bccd53
deduplicate user-agent setting code
12 months ago
Kay Faraday
b73526a895
simplify account fetch by removing the WebFinger step
...
Now we fetch the user's profile URL from our home server, skipping the need to WebFinger them
and also supporting instances that don't support http:// connections.
12 months ago
io
94949289f0
normalize Pleroman posts without cws ( fix #3 )
2 years ago
io
4492f6685c
remove repeated call to extract_post_content ( #2 )
...
fortunately, extract_post_content returns the same thing when called repeatedly,
so this wasn't a big deal anyway
2 years ago
ioistired
3d393c7577
Merge pull request #2 from TinfoilSubmarine/create-posts-on-first-run
...
Commit on DB object creation to ensure table posts is created
2 years ago
io
2bea936cf2
fix fetching from masto instances
2 years ago
Joel Beckmeyer
6f0a389050
create table posts if it does not exist
2 years ago
io
da961a0e35
add TODO comment
2 years ago
io
788f8550c7
handle rate limits
2 years ago
io
b906abe2b1
add basic migration support
2 years ago
io
191214dbd6
save some memory by using account handles instead of objects
2 years ago
io
97a2f5de00
a few changes
...
- better error reporting
- fix the program hanging at the end if any of the accounts failed to fetch
- remove trailing semicolon from user agent string
2 years ago
io
9b60540d07
move db_path default to load_config
2 years ago
io
a3348602c1
fetch_posts: add KeyboardInterrupt handling
2 years ago
io
4ba3bb1662
fetch_posts.py: use argparse
2 years ago
io
b8e727cfd4
fetch_posts.py: remove unused import
2 years ago
io
330fdc2809
rewrite fetch_posts.py from scratch
...
now it should be properly async by fetching posts in a separate task and sending them across
a queue to a task that inserts to the DB
2 years ago
io
944e2fc3a5
use json5 instead lol
...
toml sucks add null when
2 years ago
io
5f9959fff8
rename main.py to fetch_posts.py
2 years ago