Upgrade from Eikon -> Workspace. Learn about programming differences.

For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
3 2 2 7

Get Date, Time and URL for ESG Controversies

Hi, I am trying to get the date, time and URL of certain news controversy categories. I used the "CODECR" app/ Formula Builder in Eikon to formulate the code. However, the results do not deliver the required date and URL (see picture) but they are available in Eikon (see picture). What is the problem here? Besides that issue I would also like to receive the publishing time of the article (available in the news article). Would that be possible?

Thanks in advance

1678385113792.png1678385481811.png


eikoneikon-data-apipython#technologynewsesgdateurl
1678385113792.png (75.1 KiB)
1678385481811.png (135.8 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hello @eressourcen

Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?


If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question.

Thanks,


AHS

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

Upvotes
Accepted
4.9k 13 2 7

Hi @eressourcen ,


Thank you for your question. It seems the only thing is missing in the code is "AddSource": True. Please see an output from the following code bellow:

df, errors = ek.get_data("4295903068", ["TR.ControvTaxFraud",
                               "TR.ControvTaxFraud.esgsourceurl",
                               "TR.ControvTaxFraud.esgsourcedate"],
                         parameters = {"SDate": "0", "EDate":"-10", "Frq" : "FY", "AddSource": True})
display(df)

screenshot-2023-03-09-at-233939.png

Hope this helps.


Best regards,

Haykaz


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
17.1k 80 39 63

Hi @eressourcen

Just to follow-up on Haykaz' response, within the Data Item Browser (DIB), when you find your field(s) of interest, you can see the available parameters you can add/use - one of which is the ability to "Add Source", i.e.

1678397746418.png


1678397746418.png (66.0 KiB)
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
3 2 2 7

Hi Haykaz and Nick,

Thank you for your answers! When accessing the source URL of the article 2021-06-03, one can see that the publishing time is 5:00 pm. The stated time by the source date item is 00:00:00 which is not correct. Is there also a way to access the correct time?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Hi @eressourcen ,


The "esgsourcedate" output returns a date only. As indicated by Nick you can see all available parameters of a field in DIB. You can check all available outputs in "Output" field below:

screenshot-2023-03-10-at-133451.png

I did check for time output, but unfortunately couldn't find one.


Best regards,

Haykaz

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.