-
Notifications
You must be signed in to change notification settings - Fork 75
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 export feature for Articles #530
Conversation
@addie9800 Thanks for adding this :) I reworked some parts of the code. Can you give it a quick look and your feedback? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks really good, thanks for the additions. The only thing I'm wondering is whether or not to include the meta and ld in the saved data by default. That was actually what got me thinking about adding the option of filtering some attributes in the first place, because it's a lot of potentially unnecessary data. What do you think?
This looks good, I can't approve it though, since I am the one who opened the PR |
docs/3_the_article_class.md
Outdated
@@ -137,4 +138,10 @@ Should print this: | |||
en | |||
``` | |||
|
|||
## Saving an Article | |||
|
|||
In case you want to save some or all of the articles (refer to the [`save_to_file` parameter](5_advanced_topics.md#saving-the-crawled-articles) in the next section for the latter), the `Article` class provides a `to_json()` function. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a minor thing: Tutorial 5 isn't the next section after this one.
Please publish new package |
This PR adds a
to_json()
function to the Article class and adds the option to save all articles to file.Closes #529