Im not very knowledgeable on this, I have a scrape sensor set up as follows:
- platform: scrape
name: Travel
resource: https://twitter.com/Essex_Travel
#select: ‘a[href="#tweet-timestamp js-permalink js-nav js-tooltip"]’
select: ‘.js-tweet-text-container .tweet-text’
This updates and displays the latest tweet every time a tweet comes through. I would also like to see the timestamp for that tweet and have tried lots of configurations but can not seem to sort it out.
The HTML tag that I’ve found from using chrome development tools for the timestamp seems to be:
<a href="/Essex_Travel/status/1103701237374111744" class=“tweet-timestamp js-permalink js-nav js-tooltip”
the full element reads:
a href="/Essex_Travel/status/1103701237374111744" class=“tweet-timestamp js-permalink js-nav js-tooltip” title=“8:57 am - 7 Mar 2019” data-conversation-id=“1103701237374111744”>2d2 days ago</a
Ive been trying to build a ‘select’ string that would work but have had no luck, any help on this would be appreciated.