How to detect Facebook posts in a group then comment on it? - python

Basically, I'm trying to write python script that runs on my computer and detects new posts in a group and if it has some keywords in it, it comments a specified string. I'm currently stuck at the beginning.
Initially, I wanted to use Graph API, but it required some kind of business verification. I haven't found a working alternative yet, so literally any advice is more than welcome.
Thank you in advance for all answers!

Related

How can I make collection page like unsplash in django

I am new to web development, trying to make a image gallery and I can't figure out how to make the collection page.
Please include what do you want to do, what have you tried in order to do that and hopefully, where or what error message are you receiving.
Only then, me or someone will be able to help you.
If you don't know how to start, you are in the wrong place.
You should start watching some tutorial on youtube, then read some documentation and help yourself with more tutorials.
When you have a specific question, you come here.
:)

Is there any code for finding a certain keyword in twitter

I was wondering if anyone has any sample code for finding a certain keyword in twitter that has been recently posted and has a certain amount of likes within a certain timeframe
preferably in python. Anything related to this would help a lot if you have it. Thank You!
I have personally not done this before, but a simple google search yielded this (a python wrapper for the Twitter API):
https://python-twitter.readthedocs.io/en/latest/index.html
and a GitHub with examples that they linked from their getting started page:
https://github.com/bear/python-twitter/tree/master/examples
There you can find some example code for getting all of a user's tweets and much more.
Iterating through a list of users tweets might be able to do the job here, but if that doesn't cut it I recommend searching the docs linked above for what you need.

Is there any way to know the frequency at which ads are uploaded to a webpage with python selenium?

I am doing some statistic with the rate at which people use to upload ads to a selling-website, questions to a forum, videos to YouTube, etc. (in particular I am mostly interested about the data related with ads). The thing is that I want to measure this rate myself (without any data base reported by someone else).
I have a script (in python also using selenium) that performs the basic things to open url's and navigate.
So, is there any way to know the time instance at which a given advertisement, for example, has been uploaded or how many of them in a certain time window? Is it registered in the webpage some information related with?
In the answer is "Yes", how can I access to that data from selenium?
I know it is kind of a general question since I am not being specific about a webpage in particular, so I apologize :)
I'd be glad if someone could help with that, thanks in advance. Any answer or comment would be appreciated.

Scripting for LinkedIn Sales Navigator

I'm not a programmer (I'm starting to learn some coding, but I'm an absolute beginner).
Thing is that my work has lots of things that could be automated with scripting. I have to search lots of companies in Linkedin Sales Navigator which leads me to absolute boredom and alienation. I have to grab a spreadsheet, copy and paste every day, and I feel kind of stupid doing something that could be easily automated.
I have thought of automating this stuff, but I don't know where to start. A friend of mine told me that Stack Overflow could help me to know where I can start. I did my research but didn't found anything profitable, maybe this is due to my lack of knowledge.
Summarizing: I need the guides to create a Script that copy a spreadsheet field to a browser field and extract the results from it and paste it out to the adjacent fields of the same spreadsheet, with the info extracted from LinkedIn. Where I can start? Thanks for your comprehension.
Python is perfect the task the described above, I would recommend looking at following:
http://learnpythonthehardway.org/
Automate the boring stuff with python (book)
These should get you started.
Here a description of a tool that automate the extraction of leads and accounts:
https://medium.com/p/exporting-leads-informations-from-linkedin-sales-navigator-d38d3602e5b3

how to count number of links shared by a facebook page?

I am working on a website for which it would be useful to know the number of links shared by a particular facebook page (e.g., http://www.facebook.com/cocacola) so that the user can know whether they are 'liking' a firehose of information or a dribble of goodness. What is the best way to get the number of links/status updates that are shared by a particular page?
+1 for implementations that use python (this is a django website) but any solutions are welcome! I tried using fbconsole to accomplish this but I have come up a little short.
For what it is worth, this unanswered question seems relevant. As does the fact that, as of 2012.04.18, you can export your data to csv from the insights management page on the facebook site. The information is in there I just don't know how to get it out...
Thanks for your help!
In the event that anyone else finds this useful, I thought I'd post my gist example here. fbconsole makes it fairly simple to extract data through the Facebook Graph API.
The caveat is that it was not terribly easy to programmatically extract data through fbconsole so I wrote the fbconsole.automatically_authenticate to make it much easier to access this information in a systematic way. This addition has not yet been incorporated into the master branch of fbconsole (it was just posted this morning), but it is available here in the meantime for those that are interested.

Categories

Resources