Giter VIP home page Giter VIP logo

un_meeting_records's Introduction

Investigating UN Meeting Records

How to:

  1. Obtain the metadata from United Nations digital library search
  2. Use rvest and download.files to scrape the pdfs from the search results
  3. Convert the pdfs to txt files
  4. Read them into R
  5. Split each file up by speaker
  6. Use regular expression pattern matching to extract the speakers' names and organisations
  7. Use quanteda to create a dictionary to see which speakers/organisations are talking about a topic of interest the most

I had to do this for a project, so I thought I'd share my code to save someone else the pain of having to figure this out from scratch.

Find the guide here (it's an R Markdown file). I've set the working directories in the Markdown file to make it work if you clone the whole respository to your ~/Desktop and run the code; the pdf and txt folders are empty and ready to receive downloads of the pdf files/converted txt files. If you'd like to see the nicely rendered html result of the Markdown file, you'll need to first clone/download the repository.

I've included some random search results in the results.csv file for you to experiment with.

This will be quite a detailed walkthrough; for a more advanced alternative try this guide by Dr Pablo Barberá.

Many thanks to Dr Pablo Barberá and Dr Gokhan Ciflikli for their invaluable help and advice.

Feedback would be greatly appreciated!

un_meeting_records's People

Contributors

thelautiff avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.