Skip to content
This repository has been archived by the owner on Jun 10, 2024. It is now read-only.

the result output #966

Open
bubugamer opened this issue Feb 25, 2021 · 4 comments
Open

the result output #966

bubugamer opened this issue Feb 25, 2021 · 4 comments

Comments

@bubugamer
Copy link

bubugamer commented Feb 25, 2021

  • 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

@binux
Copy link
Owner

binux commented Feb 25, 2021 via email

@bubugamer
Copy link
Author

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?

@binux
Copy link
Owner

binux commented Feb 25, 2021

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.

@bubugamer
Copy link
Author

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!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants