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

Handle translation for shared and user text, split into separate properties. #940

Merged
merged 3 commits into from
Dec 5, 2022
Merged

Conversation

NielsOerbaek
Copy link
Contributor

Make the original text the default "text" property and split that into "post" and "shared". Since the scraper recommends using US locale it gives wrong texts for non-english posts.
[Post,Shared] Text is original language text.
Translated [Post,Shared] Text is facebooks translation.
Original text is also copied to "original_text" to ensure backward compatability.

Code looks for several story_body_containers and handles them one at a time.

Should the properties be copied to the default data model?

@neon-ninja neon-ninja merged commit eb42d53 into kevinzg:master Dec 5, 2022
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