Ok, Carlos, gracias, lo miro, me lo acabo de descargar, por si alguien lo quiere está en: http://kek.ksu.ru/EOS/WM/AutDataCollectR.pdf Un saludo Date: Thu, 7 Jan 2016 12:06:40 +0100 Subject: Re: [R-es] Instrucciones uso rvest From: cof en qualityexcellence.es To: fjroar en hotmail.com CC: r-help-es en r-project.org Hola, Te recomendaría que tuvieras muy a mano este libro. El caso que planteas, está tratado en detalle en el capítulo 9. http://www.amazon.es/Automated-Data-Collection-Practical-Christian/dp/B00YDJN8YE/ref=sr_1_2?s=books&ie=UTF8&qid=1452164658&sr=1-2&keywords=automated+data+collection Gracias, Carlos Ortega www.qualityexcellence.es El 7 de enero de 2016, 11:44, Francisco Rodríguez <fjroar en hotmail.com> escribió: Hola buenos días: Perdonar por no contestar antes, pero estaba aislado jeje. En principio la ideas que apuntas la conozco pero es aún más sencillo en este caso ya que dichos datos te los puedes descargar de un excel que publica el INE. La cuestión que planteo es para interactuar directamente con la web. He tomado esta página como ejemplo, porque si consigo ejecutar lo que pregunto aquí, entonces la idea la podría aplicar a otros casos, pero por lo que veo es más complicado de lo que parece Muchas gracias y si conocéis algo que se pueda hacer estupendo y si no, en caso de que encuentre algo al respecto de la cuestión que planteo, lo comparto Date: Mon, 28 Dec 2015 14:42:26 +0100 From: franciscoj.viciana en juntadeandalucia.es To: r-help-es en r-project.org Subject: Re: [R-es] Instrucciones uso rvest Creo que es mucho mas sencillo que te descargues el fichero completo con toda la serie y luego selecciones los datos que te interesa en R. Por ejemplo puedes descargar toda la serie en formato pc-Axis e importarlo con el paquete "pxR". Adjunto ejemplo: download.file('http://www.ine.es/jaxiT3/files/t/es/px/10280.px', destfile = '10280.px') datos <- read.px('10280.px',encoding='latin1') # bug sin "encoding" df <- as.data.frame(datos) names(df) my.df <- subset(df, Comunidades..Provincias.y.Ciudades.Aut?nomas =='Andaluc?a' & N?mero.importe == 'N?mero' & Entidad.que.concede.el.pr?stamo == 'Todas las entidades' & Periodo %in% c("2015M10","2015M09") ) my.df On 23/12/15 12:33, Francisco Rodr?guez wrote:> Hola buenos d?as:>> Os remito una duda (en un documento word para su mejor expresi?n)> sobre el uso de la libreria rvest.> Mi problema es que como no soy informatico me pierdo un poco, he visto> los ejemplos que hay colgados y los he seguido, pero el tema es que> quiero acceder a los datos del INE, que en ocasiones estan un poco> escondidos con menu de selecciones y no se como hacerlo con rvest para> llegar hasta la solucion final.>> Lo anterior si lo he hecho (y lo sigo haciendo) con Rselenium gracias> a que use un ejemplo de Gregorio Serrano, pero quiero pasar esos> primeros codigos a rvest y por eso es por lo que solicito vuestra ayuda>> Remito fichero adjunto para aclarar un ejemplo de los que uso>> Un saludo y muchas gracias>>> _______________________________________________> R-help-es mailing list> R-help-es en r-project.org> https://stat.ethz.ch/mailman/listinfo/r-help-es-- +-------------------------------------------------------------- | Francisco J. Viciana Fern?ndez | Coordinador del Registro de Poblaci?n | Servicio de Estad?sticas Demogr?ficas y Sociales | Instituto de Estad?stica y Cartograf?a de Andaluc?a | Leonardo Da Vinci, n? 21. Isla de La Cartuja. | 41071 SEVILLA. | franciscoj.viciana en juntadeandalucia.es +-------------------------------------------------------------- [[alternative HTML version deleted]] _______________________________________________ R-help-es mailing list R-help-es en r-project.org https://stat.ethz.ch/mailman/listinfo/r-help-es [[alternative HTML version deleted]] _______________________________________________ R-help-es mailing list R-help-es en r-project.org https://stat.ethz.ch/mailman/listinfo/r-help-es -- Saludos, Carlos Ortega www.qualityexcellence.es [[alternative HTML version deleted]]
Hola Francisco, Por ahora hemos evitado el incluir en la lista cualquier link a la "Dark Web" para este tipo de cosas. Sí que mencionamos su existencia, pero no lo hacemo explícito y por ahora preferimos que sea así, para no dar pie a acabar convirtiéndonos en algo que no queremos. Gracias, Carlos. El 7 de enero de 2016, 12:30, Francisco Rodríguez <fjroar en hotmail.com> escribió:> Ok, Carlos, gracias, lo miro, me lo acabo de descargar, por si alguien lo > quiere está en: > > http://kek.ksu.ru/EOS/WM/AutDataCollectR.pdf > > Un saludo > > ------------------------------ > Date: Thu, 7 Jan 2016 12:06:40 +0100 > Subject: Re: [R-es] Instrucciones uso rvest > From: cof en qualityexcellence.es > To: fjroar en hotmail.com > CC: r-help-es en r-project.org > > > Hola, > > Te recomendaría que tuvieras muy a mano este libro. > El caso que planteas, está tratado en detalle en el capítulo 9. > > > http://www.amazon.es/Automated-Data-Collection-Practical-Christian/dp/B00YDJN8YE/ref=sr_1_2?s=books&ie=UTF8&qid=1452164658&sr=1-2&keywords=automated+data+collection > > Gracias, > Carlos Ortega > www.qualityexcellence.es > > El 7 de enero de 2016, 11:44, Francisco Rodríguez <fjroar en hotmail.com> > escribió: > > Hola buenos días: > Perdonar por no contestar antes, pero estaba aislado jeje. > En principio la ideas que apuntas la conozco pero es aún más sencillo en > este caso ya que dichos datos te los puedes descargar de un excel que > publica el INE. > La cuestión que planteo es para interactuar directamente con la web. He > tomado esta página como ejemplo, porque si consigo ejecutar lo que pregunto > aquí, entonces la idea la podría aplicar a otros casos, pero por lo que veo > es más complicado de lo que parece > Muchas gracias y si conocéis algo que se pueda hacer estupendo y si no, en > caso de que encuentre algo al respecto de la cuestión que planteo, lo > comparto > > Date: Mon, 28 Dec 2015 14:42:26 +0100 > From: franciscoj.viciana en juntadeandalucia.es > To: r-help-es en r-project.org > Subject: Re: [R-es] Instrucciones uso rvest > > Creo que es mucho mas sencillo que te descargues el fichero completo con > toda la serie y luego selecciones los datos que te interesa en R. Por > ejemplo puedes descargar toda la serie en formato pc-Axis e importarlo > con el paquete "pxR". Adjunto ejemplo: > > download.file('http://www.ine.es/jaxiT3/files/t/es/px/10280.px', > destfile = '10280.px') > datos <- read.px('10280.px',encoding='latin1') # bug sin "encoding" > df <- as.data.frame(datos) > names(df) > my.df <- subset(df, Comunidades..Provincias.y.Ciudades.Aut?nomas > =='Andaluc?a' & > N?mero.importe == 'N?mero' & > Entidad.que.concede.el.pr?stamo == 'Todas las > entidades' & > Periodo %in% c("2015M10","2015M09") > ) > my.df > > > > > On 23/12/15 12:33, Francisco Rodr?guez wrote: > > Hola buenos d?as: > > > > Os remito una duda (en un documento word para su mejor expresi?n) > > sobre el uso de la libreria rvest. > > Mi problema es que como no soy informatico me pierdo un poco, he visto > > los ejemplos que hay colgados y los he seguido, pero el tema es que > > quiero acceder a los datos del INE, que en ocasiones estan un poco > > escondidos con menu de selecciones y no se como hacerlo con rvest para > > llegar hasta la solucion final. > > > > Lo anterior si lo he hecho (y lo sigo haciendo) con Rselenium gracias > > a que use un ejemplo de Gregorio Serrano, pero quiero pasar esos > > primeros codigos a rvest y por eso es por lo que solicito vuestra ayuda > > > > Remito fichero adjunto para aclarar un ejemplo de los que uso > > > > Un saludo y muchas gracias > > > > > > _______________________________________________ > > R-help-es mailing list > > R-help-es en r-project.org > > https://stat.ethz.ch/mailman/listinfo/r-help-es > > -- > +-------------------------------------------------------------- > | Francisco J. Viciana Fern?ndez > | Coordinador del Registro de Poblaci?n > | Servicio de Estad?sticas Demogr?ficas y Sociales > | Instituto de Estad?stica y Cartograf?a de Andaluc?a > | Leonardo Da Vinci, n? 21. Isla de La Cartuja. > | 41071 SEVILLA. > | franciscoj.viciana en juntadeandalucia.es > +-------------------------------------------------------------- > > > [[alternative HTML version deleted]] > > > _______________________________________________ > R-help-es mailing list > R-help-es en r-project.org > https://stat.ethz.ch/mailman/listinfo/r-help-es > [[alternative HTML version deleted]] > > _______________________________________________ > R-help-es mailing list > R-help-es en r-project.org > https://stat.ethz.ch/mailman/listinfo/r-help-es > > > > > -- > Saludos, > Carlos Ortega > www.qualityexcellence.es >-- Saludos, Carlos Ortega www.qualityexcellence.es [[alternative HTML version deleted]]
Ok, entendido, gracias y un saludo Date: Thu, 7 Jan 2016 14:06:24 +0100 Subject: Re: [R-es] Instrucciones uso rvest From: cof en qualityexcellence.es To: fjroar en hotmail.com CC: r-help-es en r-project.org Hola Francisco, Por ahora hemos evitado el incluir en la lista cualquier link a la "Dark Web" para este tipo de cosas. Sí que mencionamos su existencia, pero no lo hacemo explícito y por ahora preferimos que sea así, para no dar pie a acabar convirtiéndonos en algo que no queremos. Gracias, Carlos. El 7 de enero de 2016, 12:30, Francisco Rodríguez <fjroar en hotmail.com> escribió: Ok, Carlos, gracias, lo miro, me lo acabo de descargar, por si alguien lo quiere está en: http://kek.ksu.ru/EOS/WM/AutDataCollectR.pdf Un saludo Date: Thu, 7 Jan 2016 12:06:40 +0100 Subject: Re: [R-es] Instrucciones uso rvest From: cof en qualityexcellence.es To: fjroar en hotmail.com CC: r-help-es en r-project.org Hola, Te recomendaría que tuvieras muy a mano este libro. El caso que planteas, está tratado en detalle en el capítulo 9. http://www.amazon.es/Automated-Data-Collection-Practical-Christian/dp/B00YDJN8YE/ref=sr_1_2?s=books&ie=UTF8&qid=1452164658&sr=1-2&keywords=automated+data+collection Gracias, Carlos Ortega www.qualityexcellence.es El 7 de enero de 2016, 11:44, Francisco Rodríguez <fjroar en hotmail.com> escribió: Hola buenos días: Perdonar por no contestar antes, pero estaba aislado jeje. En principio la ideas que apuntas la conozco pero es aún más sencillo en este caso ya que dichos datos te los puedes descargar de un excel que publica el INE. La cuestión que planteo es para interactuar directamente con la web. He tomado esta página como ejemplo, porque si consigo ejecutar lo que pregunto aquí, entonces la idea la podría aplicar a otros casos, pero por lo que veo es más complicado de lo que parece Muchas gracias y si conocéis algo que se pueda hacer estupendo y si no, en caso de que encuentre algo al respecto de la cuestión que planteo, lo comparto Date: Mon, 28 Dec 2015 14:42:26 +0100 From: franciscoj.viciana en juntadeandalucia.es To: r-help-es en r-project.org Subject: Re: [R-es] Instrucciones uso rvest Creo que es mucho mas sencillo que te descargues el fichero completo con toda la serie y luego selecciones los datos que te interesa en R. Por ejemplo puedes descargar toda la serie en formato pc-Axis e importarlo con el paquete "pxR". Adjunto ejemplo: download.file('http://www.ine.es/jaxiT3/files/t/es/px/10280.px', destfile = '10280.px') datos <- read.px('10280.px',encoding='latin1') # bug sin "encoding" df <- as.data.frame(datos) names(df) my.df <- subset(df, Comunidades..Provincias.y.Ciudades.Aut?nomas =='Andaluc?a' & N?mero.importe == 'N?mero' & Entidad.que.concede.el.pr?stamo == 'Todas las entidades' & Periodo %in% c("2015M10","2015M09") ) my.df On 23/12/15 12:33, Francisco Rodr?guez wrote:> Hola buenos d?as:>> Os remito una duda (en un documento word para su mejor expresi?n)> sobre el uso de la libreria rvest.> Mi problema es que como no soy informatico me pierdo un poco, he visto> los ejemplos que hay colgados y los he seguido, pero el tema es que> quiero acceder a los datos del INE, que en ocasiones estan un poco> escondidos con menu de selecciones y no se como hacerlo con rvest para> llegar hasta la solucion final.>> Lo anterior si lo he hecho (y lo sigo haciendo) con Rselenium gracias> a que use un ejemplo de Gregorio Serrano, pero quiero pasar esos> primeros codigos a rvest y por eso es por lo que solicito vuestra ayuda>> Remito fichero adjunto para aclarar un ejemplo de los que uso>> Un saludo y muchas gracias>>> _______________________________________________> R-help-es mailing list> R-help-es en r-project.org> https://stat.ethz.ch/mailman/listinfo/r-help-es-- +-------------------------------------------------------------- | Francisco J. Viciana Fern?ndez | Coordinador del Registro de Poblaci?n | Servicio de Estad?sticas Demogr?ficas y Sociales | Instituto de Estad?stica y Cartograf?a de Andaluc?a | Leonardo Da Vinci, n? 21. Isla de La Cartuja. | 41071 SEVILLA. | franciscoj.viciana en juntadeandalucia.es +-------------------------------------------------------------- [[alternative HTML version deleted]] _______________________________________________ R-help-es mailing list R-help-es en r-project.org https://stat.ethz.ch/mailman/listinfo/r-help-es [[alternative HTML version deleted]] _______________________________________________ R-help-es mailing list R-help-es en r-project.org https://stat.ethz.ch/mailman/listinfo/r-help-es -- Saludos, Carlos Ortega www.qualityexcellence.es -- Saludos, Carlos Ortega www.qualityexcellence.es [[alternative HTML version deleted]]
miguel.angel.rodriguez.muinos en sergas.es
2016-Jan-07 13:33 UTC
[R-es] Instrucciones uso rvest
Hola Francisco. Por razones obvias, no es adecuado (ni está permitido) publicar en la lista enlaces (de descarga) a contenidos protegidos por copyright. Entendemos que ha sido un error (por el que pedimos disculpas a los autores de dicho contenido) y os recordamos que, en caso de que este tipo de acciones se sigan produciendo, nos veremos obligados a dar de baja de la lista al usuario en cuestión. La recomendación es referenciar los contenidos que estiméis oportunos y, cada cual que busque la forma más adecuada de hacerse con ellos, en caso de que sean de su interés. Un Saludo -- Miguel Ángel Rodríguez Muíños (un) Administrador de la lista El 7 de enero de 2016, 12:30, Francisco Rodríguez <fjroar en hotmail.com><mailto:fjroar en hotmail.com> escribió: Ok, Carlos, gracias, lo miro, me lo acabo de descargar, por si alguien lo quiere está en: <CONTENIDO BORRADO INTENCIONADAMENTE> Un saludo ________________________________ Nota: A información contida nesta mensaxe e os seus posibles documentos adxuntos é privada e confidencial e está dirixida únicamente ó seu destinatario/a. Se vostede non é o/a destinatario/a orixinal desta mensaxe, por favor elimínea. A distribución ou copia desta mensaxe non está autorizada. Nota: La información contenida en este mensaje y sus posibles documentos adjuntos es privada y confidencial y está dirigida únicamente a su destinatario/a. Si usted no es el/la destinatario/a original de este mensaje, por favor elimínelo. La distribución o copia de este mensaje no está autorizada. See more languages: http://www.sergas.es/aviso-confidencialidad [[alternative HTML version deleted]]