简体   繁体   English

PWA-Vue-WP Rest Api

[英]PWA - Vue - WP Rest Api

I have build a ecommerce website using wordpress and i have used python for scraping data for others websites and compare the prices and bulk upload products with csv file. 我已经使用wordpress建立了一个电子商务网站,并且使用python来抓取其他网站的数据,并将价格和批量上传的产品与csv文件进行比较。

My thought is to start learning Vue and build it as PWA because in know days and in the future this will be essential. 我的想法是开始学习Vue并将其构建为PWA,因为在已知的日子和将来这将至关重要。 Also i consider to use WP Rest Api to buid it. 我也考虑使用WP Rest Api来建立它。 Until now the most looks clear for me. 到现在为止,最清楚的对我来说。

Μy concern is, that i would like to avoid using python and have my bot run 24 hours to download data which i need everday. 我担心的是,我想避免使用python并让我的bot运行24小时下载我每天需要的数据。 I would like take the prices for each product in real time for some external websites(for example specify the html which the price is and write it in a specific field in my website) . 我想实时获取某些外部网站每种产品的价格(例如,指定价格是html并将其写在我网站的特定字段中)

Can that be done is some way? 可以通过某种方式做到吗? Please advice 请指教

Thank you 谢谢

I think you would have to rely on the API of the pages, a lot of websites provide such an API with the actual price that you could fetch. 我认为您将不得不依靠页面的API,许多网站都提供了可以获取的实际价格的API。

Also if i could recommend you something take a look at the Nuxt/PWA Module , it works out of the box and has tons of configuration options and SSR support if you want that for your SEO optimization. 另外,如果我可以向您推荐一些东西,请查看Nuxt / PWA模块 ,它可以直接使用,并且具有大量的配置选项和SSR支持(如果您想通过SEO优化)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM