256 Kilobytes

Web Scraping, Data Analysis Answers

Type AnswersAsk and answer questions, if that is something that you want to do. Category Web Scraping, Data AnalysisWeb scraping, crawling, and analyzing related data.

Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

TFW

MoreSee code. Yeah, it seems like you do in fact have to make a bunch of additional HTTP requests. def resolve_t_co(t_co_url): if t_co_url !...
🗨
0
🐏
1
👁
87
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

It's time to post code so that I can fin...

MoreIt's time to post code so that I can find this the next eight times I need to do this: # ##### ##### ################# ##### ##### # # ##### ###...
🗨
0
🐏
0
👁
43
Profile Photo - August R. Garcia
Profile Photo - August R. Garcia

Last Reply Here's a better version that removes the " results" string and then casts the result to a number instead of a string: =VALUE(substitute(importXML... August R. Garcia,

Here's a better version t...

Tue, 08 Oct 2019 09:17:50 -0700 1 month ago
🗨
1
🐏
0
👁
184
Profile Photo - August R. Garcia

[Solved] Python - Getting the remote/server IP address and port from an HTTP response using the requests library?

Answers in Web Scraping, Data Analysis | By August R. Garcia

Published 1 month agoWed, 25 Sep 2019 15:54:55 -0700 | Last update 1 month agoThu, 26 Sep 2019 13:25:27 -0700

Profile Photo - August R. Garcia

Some edge case what even is this.

MoreThe solution here seems to generally work: https://stackoverflow.com/questions/22492484/how-do-i-get-the-ip-address-from-a-http-request-using-th...
🗨
0
🐏
0
👁
120
Profile Photo - August R. Garcia

[Solved] Color code HTTP status codes in Python

Answers in Web Scraping, Data Analysis | By August R. Garcia

Published 3 months agoMon, 29 Jul 2019 22:34:12 -0700

Profile Photo - August R. Garcia

Last Reply For Python 3: import http.client [...] try: msg = " " + http.client.responses[status_code] [...] Code is basically th... August R. Garcia,

For Python 3:

Mon, 09 Sep 2019 12:10:10 -0700 2 months ago
🗨
1
🐏
0
👁
190
Profile Photo - Some Guy

How to replace NA with 0 in R?

Answers in Web Scraping, Data Analysis | By Some Guy

Published 10 months agoSun, 16 Dec 2018 09:39:45 -0800

Profile Photo - August R. Garcia

Last Reply some_data_with_nas[is.na(some_data_with_nas)] <- 0 Also, see this duplicate thread: https://www.256kilobytes.com/content/show/900/how-t... August R. Garcia,

Mon, 21 Jan 2019 14:28:21 -0800 9 months ago
🗨
1
🐏
0
👁
251
Profile Photo - Some Guy

What is ScrapeBox used for?

Answers in Web Scraping, Data Analysis | By Some Guy

Published 10 months agoSun, 13 Jan 2019 05:21:48 -0800

Profile Photo - August R. Garcia

Last Reply This is ScrapeBox: http://www.scrapebox.com/ It is a relatively popular tool used to gather data from the internet, as well as to do some... August R. Garcia,

This is ScrapeBox:

Wed, 16 Jan 2019 15:43:47 -0800 9 months ago
🗨
1
🐏
0
👁
286
Profile Photo - Some Guy

What is a regex non-capturing group?

Answers in Web Scraping, Data Analysis | By Some Guy

Published 9 months agoTue, 15 Jan 2019 11:54:03 -0800

Profile Photo - August R. Garcia

Last Reply As you might expect, a non-capturing group is not captured in the match. For example, if you want to match phone numbers, you might require that a whi... August R. Garcia,

As you might expect, a no...

Tue, 15 Jan 2019 14:58:59 -0800 9 months ago
🗨
1
🐏
0
👁
264
Profile Photo - Some Guy
Profile Photo - Some Guy

MoreI'm trying to do some web scraping and I'm getting the following: "error in ogrlistlayers(dsn = dsn) : cannot open data source". H...
🗨
0
🐏
0
👁
408
Profile Photo - Some Guy

How to install the R programming language on Ubuntu?

Answers in Web Scraping, Data Analysis | By Some Guy

Published 10 months agoFri, 11 Jan 2019 18:46:45 -0800

Profile Photo - August R. Garcia

Last Reply Just tested this from a clean Ubuntu install and it worked fine. Run this from the terminal to install: sudo apt-get install r-base Then... August R. Garcia,

Just tested this from a c...

Fri, 11 Jan 2019 18:47:39 -0800 10 months ago
🗨
1
🐏
0
👁
225
Profile Photo - Some Guy

How can I use R to generate graphs for my website?

Answers in Web Scraping, Data Analysis | By Some Guy

Published 10 months agoFri, 11 Jan 2019 18:42:58 -0800

Profile Photo - August R. Garcia

Last Reply If you need one-off graphs that contain data that is not expected to change, it can be easiest to generate that data locally to image files and to the... August R. Garcia,

If you need one-off graph...

Fri, 11 Jan 2019 18:45:31 -0800 10 months ago
🗨
1
🐏
0
👁
228
Profile Photo - Some Guy

How do I fix "Indentationerror: expected an indented block"?

Answers in Web Scraping, Data Analysis | By Some Guy

Published 10 months agoSun, 16 Dec 2018 09:40:51 -0800

Profile Photo - Some Guy

I have written some Python code using No...

MoreI have written some Python code using Notepad in Windows. Every time I try to run the code using the command line I get an error message and it does...
🗨
0
🐏
0
👁
240
Profile Photo - Some Guy

How to change column name in R?

Answers in Web Scraping, Data Analysis | By Some Guy

Published 10 months agoSun, 16 Dec 2018 09:29:57 -0800

Profile Photo - Some Guy

I am working in DataFrames for a work pr...

MoreI am working in DataFrames for a work project and want to change a column to show "R" as its name. How do you do this?
🗨
0
🐏
0
👁
195
Profile Photo - Some Guy

How to resolve a non-numeric argument to a binary operator?

Answers in Web Scraping, Data Analysis | By Some Guy

Published 10 months agoSun, 16 Dec 2018 09:29:32 -0800

Profile Photo - Some Guy

I have just started learning R from scra...

MoreI have just started learning R from scratch so i m getting trouble in execution of following code in RStudio. How can I resolve the non-numeric argume...
🗨
0
🐏
0
👁
210
Profile Photo - Some Guy
Profile Photo - Some Guy

I am not exactly an old hand when it com...

MoreI am not exactly an old hand when it comes to DataFrame, but I like to think I have been getting the hang of it. The message "Number of items to...
🗨
0
🐏
0
👁
223