V
V
vante_scribaxxi2017-12-05 01:33:56
Python
vante_scribaxxi, 2017-12-05 01:33:56

How to organize parsing and autofilling on WordPress?

There is a site (WordPress) , it needs to be updated daily.
The data is taken from another site , ie. the program should parse them (data), format them and upload them to the recipient site.
Previously, I wrote only simple crawlers and selenium bots. Those. In detail, I roughly understand how what should happen.
As I see it : I am writing a control module that runs once every 24 hours at 4:00. It imports scrapy spider modules, runs them in the thread pool, and then generates a file with selenium, uploads them to WordPress through the admin panel.
Questions .
1. How good is this solution? Are there any pitfalls? Advise what?
2. How can this problem be solved differently?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Evgen, 2017-12-05
@Verz1Lka

Either write imports to the database right away in the parser (but you have to deal with the structure), or you can write, for example, to a file and use some kind of import plugin in WP, of which there are a lot.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question