Home | Trees | Indices | Help |
|
---|
|
object --+ | Miner --+ | TextMiner --+ | FacebookMiner
The Facebook user profile miner.
This miner use an access token to access a user facebook wall and retrieve its text message. While the messages's text is retrieve, the miner write them into a txt file. Once every messages have been write to the file the miner generate n-grams from the file and insert them in the database, using the minr.TextMiner methods.
![]() |
Class Hierarchy for FacebookMiner |
Note: The miner do not retrieve every facebook wall messages each time. When mining a facebook wall he saves the published date of the latest message and on next mining it will only retrieved the messages that have been published AFTER the saved date. See: minr.FacebookMiner.update_fb
To Do (0.2.0): Create web app in order to log the user to facebook and twitter, authenticate them and ask for permissions (if needed) and finaly get access token.
|
|||
Inherited from Miner | |||
---|---|---|---|
__metaclass__ Metaclass for defining Abstract Base Classes (ABCs). |
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
dict |
|
||
|
|||
Inherited from |
|||
Inherited from TextMiner | |||
---|---|---|---|
|
|||
|
|||
dict |
|
||
|
|
|||
__abstractmethods__ =
|
|||
Inherited from Miner | |||
---|---|---|---|
_abc_cache = <_weakrefset.WeakSet object at 0x7f2a42131ad0>
|
|||
_abc_negative_cache = <_weakrefset.WeakSet object at 0x7f2a421
|
|||
_abc_negative_cache_version = 44
|
|||
_abc_registry = <_weakrefset.WeakSet object at 0x7f2a42131a90>
|
|
|||
Inherited from |
|
Constructor of the FacebookMiner class.
|
Perform the mining operation.
|
Write a facebook post message to a file.
|
Fully mine every posts of a facebook profile. Mine the posts contained in the "posts" parameter (which should contains the latest posts) and keep requesting older posts until we reach the last post. If a post contains a textual message it is automatically written in the file at self.fbFile. The latest post unix time is computed and written in the config.
Note: It is not possible to get every posts of a facebook profile in a single request (except if the profile contains very few posts).So The method must scan the "posts" dictionary and request the older posts until the request return a posts dictionary. |
Mine posts of a facebook profile since the last mining operation. Mine the posts contained in the "posts" parameter (which should contains the latest posts) and keep requesting older posts until:
If a post contains a textual message it is automatically written in the file at self.fbFile. The latest post unix time is computed and written in the config so that we know which posts have been published after this one the next time the method is called.
Note: It is not possible to get every posts of a facebook profile in a single request (except if the profile contains very few posts). So The method must scan the "posts" dictionary and request the older posts until the request return a posts dictionary. |
Use the facebook access token to get details about the user.
|
Override the parent method. This method delete the database file and also set the last_update option of the facebook miner to the oldest value possible so that the facebook account will be fully scraped on next mining operation.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Jul 14 21:07:50 2015 | http://epydoc.sourceforge.net |