Get Updates from Twitter using API from the given Date - twitter-oauth

Is there is any API available in twitter to get the updates after the given date?
For example.
If i give the date as 18 jan 2016 then,My expected the result is the collection of twitter Updates which happens after 18th Jan 2016.

Sort of. Most API calls take the optional parameter since_id. The call will then only result items with an id greater than the one specified. That also means they're newer.

Related

Can I get AuthorRetrieval data since a specific year?

I tried to use this format but it returns data from all the years:
AuthorRetrieval(author_id, refresh=True, kwds='PUBYEAR IS 2022 OR PUBYEAR IS 2021 OR PUBYEAR IS 2020 OR PUBYEAR IS 2019 OR PUBYEAR IS 2018')
To be more specific to my problem, I am trying to get the number of documents that have cited(cited by) excluding the self-cited documents of the past five years.
For the citations I used the parameters start, end(CitationOverview), but I cant find something for the number of cited-by.
That is unfortunately not possible. The Author Retrieval API returns only the current state - just as if you were looking at an Author profile on scopus.com.
The reason why your kwds parameter is ignored is because it's not a valid keyword. It's not made for a Scopus query string. See https://www.programiz.com/python-programming/args-and-kwargs for an overview of what the parameter does.
Your only option is to reconstruct author values from her publications. You can get them with the ScopusSearch() class.
I'd recommend to use a query like "AU-ID(123466)" and then extract the documents based on their publication year. This way it's much more likely that you can re-use the cached results.

Identify and name a timestamp for specific data entry points

I have a situation where I'm trying to look at changes in data based on timestamp of user entry (or 'created on').
The data highlights planning for delivery of goods, users have the ability to 're-plan' their dates of entry.
What I need to do is look at the timestamp for each 're-planning' date and be able to tell if the date of planning was changed within 7 days of delivery. For example
Data line XXY was planned for delivery on the 29th of August, 2017...but was changed, ON the 27th, to the 30th....this is a flag...
Like wise XXZ was planned for the 30th but changed to September 15th on the 29th...also a flag. Both were changed within 7 days of their previous 'delivery' date. Does this make sense and is there a simple way to do this?

Mailchimp Conditional Merge tags using a date field not working

This is not about the API. This is about using Mailchimp and setting conditional merge fields in the backend of Mailchimp when building a campaign. So this question is about how Mailchimp works rather than about integrating Mailchimp via an API or something similar.
(You're still here? Great! :-)
I'm trying to use a date field to show conditional content.
I have 3 people in my test mailing list, one with birthday 1/1/1960, one with 1/1/1970 and one with 1/1/1980.
I've set up an email with three conditional block so that each recipient should get the right piece of text in his mail. It looks like this.
The format I'm using is:
*|IF:BIRTHDATE>1/1/1970|*
Some text for people with a birthdate greater than 1 jan 1970
*|END:IF|*
*|IF:BIRTHDATE=1/1/1970|*
Some text for people with a birthdate equal to 1 jan 1970
*|END:IF|*
*|IF:BIRTHDATE<1/1/1970|*
Some text for people with a birthdate smaller than 1 jan 1970
*|END:IF|*
I've taken the date of the 1st of jan (1/1) to avoid possible conflicts with US and EU date notations to rule that out of the debugging process.
However, eacht recipient receives the last of the three texts when sending the test mailing, meaning that all three, regardless of their birthdate somehow match the last condition *|IF:BIRTHDATE<1/1/1970|*
This is strange since I've deliberately taken the middel birthdate to rule this out.
The date notation in the list of recipients matches the exact dat notation that I'm using in the conditions.
Does anyone have any idea how this should be done with dates in Mailchimp? I can't find any iformation on that on either Mailchimp or anywhere else on the net.
You have to use the format 'YYYY-MM-DD'.
I was struggling with this, too, but I have the below working:
*|IF:VALIDUNTIL=2016-12-31|*
Vaild Member
*|ELSE:|*
Expired Member
*|END:IF|*
Don't know if this is a recent change, but Roger's answer only works for exact date comparison.
*|IF:JOINED=2017-01-31|*
You joined ON jan 31st
*|ELSE:|*
You joined literally any other date
*|END:IF|*
If you want to use comparisons, they work the same as any other merge tag (But only in the YYYY-MM-DD format)
*|IF:JOINED>2017-01-31|*
You joined after January 31st 2017
*|ELSE:|*
You joined before January 31st 2017
*|END:IF|*

How to retrieve only the newest rows via the Smartsheet API

I need to be able to retrieve only the newest (most recently modified) rows via the Smartsheet API.
The only way to get a sheet's rows seems to be via the Get Sheet call here: http://www.smartsheet.com/developers/api-documentation#h.4930jur8qsvs
I have a large sheet that is taking this call over 30 seconds to return. What I really need is just a way to get the most recently modified rows since a given timestamp.
Is there a way?
Try this (REST GET operation):
/sheet/{sheetID}?rowsModifiedSince={DATETIME}
DATETIME: Must be in UTC Format. e.x.:
https://api.smartsheet.com/1.1/sheet/##########?rowsModifiedSince=2015-03-26T11:40:00Z
This is an undocumented parameter of Smartsheet API 1.1.
Grabbing rows by modified date is not currently supported by the Smartsheet API at this time.
Just to provide an update of a hard to find correct syntax for version 2.0:
ten_ago = datetime.now() - timedelta(minutes=10)
ten_ago = ten_ago.isoformat()
page = smart.Sheets.get_sheet(sheet, level=2, rows_modified_since=ten_ago, include=object_value)
This will retrieve only the rows that has been modified 10 min ago including smartsheet object values.

Xpath current date

I have a webpage where a row displays name, relation and date. I want to search for the matching row as per my values. Using Xpath, I have built the below mentioned code. The only problem is the last part (the date). I want to pick up the current date and fit it into the search query..i.e. instead of 30 Sep 2013, I want it to search for 01 Oct 2013 (assuming today is this date).
Any clue how can i do that??
$x('//tr[descendant::b[text()="text1"] and descendant::a[#class="bill" and text()="for Automation"] and descendant::td[text()="30 Sep 2013"]]')
You have to build the expression dynamically and append the date string at the end based on some date object. The specific implementation depends on which programming language you're using