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

Add new content to existing RSS file #72

Open
6a7070 opened this issue Jan 29, 2018 · 4 comments
Open

Add new content to existing RSS file #72

6a7070 opened this issue Jan 29, 2018 · 4 comments

Comments

@6a7070
Copy link

6a7070 commented Jan 29, 2018

Does this library offer a way to add entries to existing RSS files? I am able to generate new RSS files and append items to it during the initial setup of the file. However, when I don't see a mechanism to read a file, add content, and then resave. Am I missing something obvious? Thanks.

@conrad784
Copy link

take a look at issue32, so no, until you provide a patch for it, I would be happy to have this too :)

@karlcow
Copy link

karlcow commented Apr 23, 2020

@ispringle
Copy link

I do understand the desire to import an existing feed and create a feedgen object out of that, however an alternative solution would be to just use pickle and save the object, then load it again when needed. I'm doing this with my own use of feedgen and it works well.

Once you have your fg object ready to save just do:

with open('feed.obj', 'wb') as f:
    pickle.dump(fg, f)

And to reload the object later:

with open('feed.obj', 'rb') as f:
    fg = pickle.load(f)

Might be handy to document this for others somewhere.

@nzjc
Copy link

nzjc commented May 5, 2021

I do understand the desire to import an existing feed and create a feedgen object out of that, however an alternative solution would be to just use pickle and save the object, then load it again when needed. I'm doing this with my own use of feedgen and it works well.

Once you have your fg object ready to save just do:

with open('feed.obj', 'wb') as f:
    pickle.dump(fg, f)

And to reload the object later:

with open('feed.obj', 'rb') as f:
    fg = pickle.load(f)

Might be handy to document this for others somewhere.

Legend.

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

No branches or pull requests

5 participants