Open ibraheemhsn opened 5 years ago
Hi, this error will happen when the data you're trying to save to MySQL is too long or in a wrong datatype.
Can you tell me the table structure of your mysql db?
Hi,
this is my data structure
BTW: only forth column (data) json type, is still empty after many scraping retries.
is my db structure correct ? datatype here is JSON. also note I trying to save very little amount of data.
Hi Data have not been saved to my MySQL database. I have configured ArrestDB and Database correctly. and added the correct storage details in the plugin options page, and then I run the following sitemap, but always nothing saved to data column in my database. I checked my table in MySQL database and I found that (id, sitemapid, content) have been saved correctly, but nothing saved in data column.
as well when I click (export data to CSV), it export empty csv file (only header exist). I made sure ArrestDB is working and it is already give me correct get response.
as well when I change plugin option to local storage or CouchDB , then everything saved correctly and going well !
this is the sitemap I used for testing:
{"_id":"sitemap7","startUrl":"https://github.com/hejiheji001/Web-Scraper-Plus","selectors":[{"parentSelectors":["_root"],"type":"SelectorText","multiple":true,"id":"linkssssss","selector":"span.css-truncate a.js-navigation-open","regex":"","datafilter":"","delay":""}]}
see image explaining correct get response but data field is still empty .![correct get response](https://user-images.githubusercontent.com/9101663/57080345-0354f000-6cfb-11e9-9896-4870508fb0bd.png)