4
4
4upik2016-03-23 12:10:40
WordPress
4upik, 2016-03-23 12:10:40

How to parse part of a permanent html page and add it to scheduled posts in wordpress?

The bank website changes the exchange rate every day
The task is to parse the exchange rate for today every day and add it to the wordpress record every day according to the schedule
For example: The exchange
rate for March 23, 2016 and the parsed code.
I searched for plugins and didn't find anything.
What are the types of solutions to this problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Kozlov, 2016-03-23
@trampick

I would divide the task into several stages:
- Parse the html code of the desired page . The xdan.ru/Uchimsya-parsit-saity-s-bibliotekoi-PHP-Si...
library will do. - It is necessary that a script be launched at a specific site url. For example, we create a page whose url will look like http://mydomain/abracadabra. We create a template for this page and run the parser script in it. Through this script and add it (the parsed course) to the record. - It is important that the hosting of the site has cron. What is it and how to use google it. Set the script to run at the url http://mydomain/abracadabra at the right time. Maybe every hour. ALL!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question