Kaynağa Gözat

move data directory constant to config file

package
flavis 4 yıl önce
ebeveyn
işleme
7e83ee819e
2 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. +2
    -0
      scraping/config.R
  2. +1
    -2
      scraping/fetch.R

+ 2
- 0
scraping/config.R Dosyayı Görüntüle

@@ -0,0 +1,2 @@
DOWNLOAD_DIR = "../data/" # warning: this is not created (should maybe)


+ 1
- 2
scraping/fetch.R Dosyayı Görüntüle

@@ -1,9 +1,8 @@
source("../utils/helpers.R")
source("config.R")
library(RCurl)
library(stringr)

DOWNLOAD_DIR = "../data/" # warning: this is not created (should maybe)

mk_absolute_url <- function(path) paste0("https://www.bundestag.de", path)

mk_url <- function(offset) {


Yükleniyor…
İptal
Kaydet