{I Need }python help how can i pick rss feeds translate to local language

lemyen

Junior Member
Joined
Jul 31, 2013
Messages
102
Reaction score
4
As the title says how can i pick rss feeds from different sites then translate them to my local language and post them as articles in my wordpress site.i Have searched WP plugins but most of them are paid .I need a python script that can handle picking rss feeds translating it my local language then posting to my site without breaking the structure.
 
You should search google for it, I suppose you will find some github results there for crawling rss -> insert the articles into deepl via api-> script that takes the output from deepl and create the articles as drafts in WP for your revision before publishing them.


You don’t need high coding skills for this relative simple python script, good luck...
 
I'm not sure if there is a good ready-made solution, probably not.

If you want to do it yourself:

Learn basic Python: https://www.reddit.com/r/learnpython/comments/53z5p4/how_to_start_learning_python_the_complete_guide/

1. Get RSS feed in python: https://stackoverflow.com/questions/2244836/rss-feed-parser-library-in-python
2. Translation API: https://cloud.google.com/translate/docs/; https://tech.yandex.com/translate/
3. Post to WordPress via python library: https://github.com/derwentx/wp-api-python or via rest: https://developer.wordpress.org/rest-api/

Experiment more with Python: https://github.com/vinta/awesome-python

Or hire somebody here on the forum: https://www.blackhatworld.com/forums/hire-a-freelancer.76/

Good luck!
 
As the title says how can i pick rss feeds from different sites then translate them to my local language and post them as articles in my wordpress site.i Have searched WP plugins but most of them are paid .I need a python script that can handle picking rss feeds translating it my local language then posting to my site without breaking the structure.
Pay for the plugin, less hassle.
Interacting with Google translate API isn't much fun.
 
Note that posting translated content on the web without using the right markup tags to denote it as translated is a Google TOS violation. AWS or Microsoft are better for this, esp if you intend to monetize with adsense or value your GCP account
 
You can use Python3 library called: googletrans
Code:
pip3 install googletrans
https://pypi.org/project/googletrans/

Here an example on how it works:
Code:
>>> translations = translator.translate(['The quick brown fox', 'jumps over', 'the lazy dog'], dest='ko')
>>> for translation in translations:
...    print(translation.origin, ' -> ', translation.text)
# The quick brown fox  ->  빠른 갈색 여우
# jumps over  ->  이상 점프
# the lazy dog  ->  게으른 개
 
Back
Top