Skip to content
master
Go to file
Code

README.md

WPC-Social-Media-Presence STARTER KITT

GUIDELINES HOW TO START TO WORK WITH APPLICATION

  1. QUICK START OF THE APPLICATION
    1.1. STANDALONE VERSION
    SocialMediaCollectorApp.py
    which is a standalone application that can be used by the following command in command line interface:
    python SocialMediaCollectorApp.py
    or just double-click on application in Graphical User Interface mode.
    1.2. PYTHON LIBRARY VERSION
    The file to clone is:
    SocialMediaCollector.py
    which is a library that can be used by the following code in Python:
    To use in your own application - please import this way:
    import SocialMediaPresenceCollector as smpc
    then start the application this way
    smpsk=smpc.SocialMediaPresenceStarterKitt()
    smpsk.start()


  2. INPUT FILES
    The application is used to scrape all the links related to social media from websites that are put in:
    url.txt
    file that should have the list of URLs in the following format:
    maslankowski.pl
    http://stat.gov.pl
    www.ug.edu.pl

  3. OUTPUT FILES
    The output of the application are two files: wpc_social.csv and wpc_social_YYYYMMDDHHMMSSnnnnnnn.json

    The file wpc_social.csv is updated with its content.

    The json file is created every time of the application running.

    To start using the software, you should download Python source file and execute like this:
    python3 SocialMediaCollectorApp.py
    or in selected MS Windows environment
    py SocialMediaCollectorApp.py

  4. PREREQUISITES - HOW TO SET UP THE PYTHON ENVIRONMENT


Both the library as well as the application are using Python 3. You can install Python 3 from the following location: http://python.org, however recommended version is to install Anaconda environment that is available here: http://www.anaconda.com.

Remember to use only Python version 3 - on Python 2 the application will not work.

IMPORTANT! Libraries bs4 and requests are necessary. Depending on your Python environment try to install them that way:
easy_install bs4
easy_install requests
OR
pip3 install bs4
pip3 install requests
OR
pip install bs4
pip install requests
OR
python -m pip install bs4
python -m pip install requests
OR
python3 -m pip install bs4
python3 -m pip install requests
OR
conda install bs4
conda install requests



General Overview of the 4 steps:
(1) Collecting Social Media links
SocialMediaCollectorApp
(2) Collecting Tweets for training and testing purposes
WP2_Step2a_CollectingTweetsByKeyword
WP2_Step2b_CollectingTweetsByEnterprise
(3) Training and testing a dataset
WP2_Step3_PurposeOfSocialMediaPresence
(4) Apply the data to check enterprise main purpose of SMP
WP2_Step4_PurposeOfSocialMediaPresence


About

WP2-Social-Media-Presence. The application is used to scrap all the links related to social media from websites.

Resources

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.