pyspider icon indicating copy to clipboard operation
pyspider copied to clipboard

the result output

Open bubugamer opened this issue 4 years ago • 4 comments

  • pyspider version:0.3.10
  • Operating system:win10
  • Start up command:pyspider all

why the results have a column named '...'? what is it used for? can I delete it? 为什么结果输出里,最后有一列空列,名字叫"..",有什么作用? 我可以删掉吗? pic

bubugamer avatar Feb 25 '21 04:02 bubugamer

If your some of your results have additional fields, it will shown there.

On Wed, Feb 24, 2021, 8:49 PM Meansss [email protected] wrote:

  • pyspider version:0.3.10
  • Operating system:win10
  • Start up command:pyspider all

why the results have a column ...? what is it used for? can I delete it? 为什么结果输出里,最后有一列空列,名字叫"..",有什么作用? 我可以删掉吗? [image: pic] https://user-images.githubusercontent.com/5516520/109104882-cbd4f480-7767-11eb-9ce9-f4a63a9c100d.png

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/binux/pyspider/issues/966, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE52M5TVRMZFMXHRLQTZJ3TAXJEFANCNFSM4YFZIUTQ .

binux avatar Feb 25 '21 07:02 binux

If your some of your results have additional fields, it will shown there. On Wed, Feb 24, 2021, 8:49 PM Meansss @.***> wrote: - pyspider version:0.3.10 - Operating system:win10 - Start up command:pyspider all why the results have a column ...? what is it used for? can I delete it? 为什么结果输出里,最后有一列空列,名字叫"..",有什么作用? 我可以删掉吗? [image: pic] https://user-images.githubusercontent.com/5516520/109104882-cbd4f480-7767-11eb-9ce9-f4a63a9c100d.png — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#966>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE52M5TVRMZFMXHRLQTZJ3TAXJEFANCNFSM4YFZIUTQ .

thx for your reply. But I didn't get the meaning of some. So it is like a reserved field in pyspider?
If I dont want any additional fields except my define fields. what should I do?

bubugamer avatar Feb 25 '21 10:02 bubugamer

The results can is a dict, you can add any fields to it. For example Row1 {title:aaa,content:bbb} Row2 {title:ccc,content:ddd,author:ree}

The author will shown in ... colum as this not common fields. It's just UI display, it has no effect of the data.

binux avatar Feb 25 '21 17:02 binux

Thx, I fully understand.

I checked db, as you said no effect to the data. shown on pic below 图片

But, if you download .csv file from webui, it still add a '{}'. shown on pic below 图片

So I checkd file result_dump.py and knew what happened 图片

Thx!

bubugamer avatar Feb 26 '21 09:02 bubugamer