You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would really like the first tweet from a blog to be the learners. There is a default start post added to the blog when it is set up. This means that the feed can feature a whole series of these welcome posts when a class is first established. The ability to identify and by pass these would be great.
The text was updated successfully, but these errors were encountered:
Have worked through a solution to this which will be added to the code.
Relies on creating a variable that will hold the string to appear in any welcome posts for the blogs.
If the post is a welcome one no tweet will happen code snippet below
#Setting post to the link for the first entry. Later check and verify whether
#this link has been promoted already. There will also be a check that the post is not a welcome one
#ie made to check the blog works etc. Welcome posts are not promoted either
try:
post = d.entries[0].link
welcomecheck = d.entries[0].link[-12:]
except:
continue
if post in url_string or welcomecheck == welcome:
print('No new entries or welcomepost')
else:
Would really like the first tweet from a blog to be the learners. There is a default start post added to the blog when it is set up. This means that the feed can feature a whole series of these welcome posts when a class is first established. The ability to identify and by pass these would be great.
The text was updated successfully, but these errors were encountered: