Re: [Rails] text visible in browser but not in source

2019-02-12 Thread fugee ohu
On Thursday, February 7, 2019 at 8:55:29 AM UTC-5, Colin Law wrote: > > On Thu, 7 Feb 2019 at 11:25, fugee ohu > > wrote: > >> >> >> On Thursday, February 7, 2019 at 3:57:03 AM UTC-5, Colin Law wrote: >>> >>> On Thu, 7 Feb 2019 at 07:49, Colin Law wrote: >>> On Thu, 7 Feb 2019, 0

Re: [Rails] text visible in browser but not in source

2019-02-12 Thread fugee ohu
On Thursday, February 7, 2019 at 8:55:29 AM UTC-5, Colin Law wrote: > > On Thu, 7 Feb 2019 at 11:25, fugee ohu > > wrote: > >> >> >> On Thursday, February 7, 2019 at 3:57:03 AM UTC-5, Colin Law wrote: >>> >>> On Thu, 7 Feb 2019 at 07:49, Colin Law wrote: >>> On Thu, 7 Feb 2019, 0

Re: [Rails] text visible in browser but not in source

2019-02-08 Thread fugee ohu
On Thursday, February 7, 2019 at 8:55:29 AM UTC-5, Colin Law wrote: > > On Thu, 7 Feb 2019 at 11:25, fugee ohu > > wrote: > >> >> >> On Thursday, February 7, 2019 at 3:57:03 AM UTC-5, Colin Law wrote: >>> >>> On Thu, 7 Feb 2019 at 07:49, Colin Law wrote: >>> On Thu, 7 Feb 2019, 0

Re: [Rails] text visible in browser but not in source

2019-02-08 Thread fugee ohu
On Wednesday, January 30, 2019 at 5:16:59 PM UTC-5, Colin Law wrote: > > On Wed, 30 Jan 2019 at 22:12, Colin Law > > wrote: > > > > On Wed, 30 Jan 2019 at 22:09, fugee ohu > > wrote: > > > > > > > > > > > > On Wednesday, January 30, 2019 at 5:02:17 PM UTC-5, Colin Law wrote: > > >> > >

Re: [Rails] text visible in browser but not in source

2019-02-07 Thread Colin Law
On Thu, 7 Feb 2019 at 11:25, fugee ohu wrote: > > > On Thursday, February 7, 2019 at 3:57:03 AM UTC-5, Colin Law wrote: >> >> On Thu, 7 Feb 2019 at 07:49, Colin Law wrote: >> >>> >>> >>> On Thu, 7 Feb 2019, 01:36 fugee ohu >> On Wednesday, February 6, 2019 at 5:04:55 PM UTC-5, Col

Re: [Rails] text visible in browser but not in source

2019-02-07 Thread fugee ohu
On Thursday, February 7, 2019 at 3:57:03 AM UTC-5, Colin Law wrote: > > On Thu, 7 Feb 2019 at 07:49, Colin Law > > wrote: > >> >> >> On Thu, 7 Feb 2019, 01:36 fugee ohu >> wrote: >> >>> >>> >>> On Wednesday, February 6, 2019 at 5:04:55 PM UTC-5, Colin Law wrote: On Wed, 6 Feb 2019 at

Re: [Rails] text visible in browser but not in source

2019-02-07 Thread Colin Law
On Thu, 7 Feb 2019 at 07:49, Colin Law wrote: > > > On Thu, 7 Feb 2019, 01:36 fugee ohu >> >> >> On Wednesday, February 6, 2019 at 5:04:55 PM UTC-5, Colin Law wrote: >>> >>> On Wed, 6 Feb 2019 at 21:42, fugee ohu wrote: >>> ... JSON::ParserError: 784: unexpected token at 'skuProd

Re: [Rails] text visible in browser but not in source

2019-02-06 Thread Colin Law
On Thu, 7 Feb 2019, 01:36 fugee ohu > > On Wednesday, February 6, 2019 at 5:04:55 PM UTC-5, Colin Law wrote: >> >> On Wed, 6 Feb 2019 at 21:42, fugee ohu wrote: >> >>> ... >>> JSON::ParserError: 784: unexpected token at >>> 'skuProducts=[{"skuAttr":"27763:201336100;491:24763#145cm","skuPr

Re: [Rails] text visible in browser but not in source

2019-02-06 Thread fugee ohu
On Wednesday, February 6, 2019 at 5:04:55 PM UTC-5, Colin Law wrote: > > On Wed, 6 Feb 2019 at 21:42, fugee ohu > > wrote: > >> ... >> JSON::ParserError: 784: unexpected token at >> 'skuProducts=[{"skuAttr":"27763:201336100;491:24763#145cm","skuPropIds" >> >> >> > > I understand why

Re: [Rails] text visible in browser but not in source

2019-02-06 Thread fugee ohu
On Wednesday, February 6, 2019 at 5:04:55 PM UTC-5, Colin Law wrote: > > On Wed, 6 Feb 2019 at 21:42, fugee ohu > > wrote: > >> ... >> JSON::ParserError: 784: unexpected token at >> 'skuProducts=[{"skuAttr":"27763:201336100;491:24763#145cm","skuPropIds" >> >> >> > > I understand why

Re: [Rails] text visible in browser but not in source

2019-02-06 Thread fugee ohu
On Wednesday, February 6, 2019 at 5:04:55 PM UTC-5, Colin Law wrote: > > On Wed, 6 Feb 2019 at 21:42, fugee ohu > > wrote: > >> ... >> JSON::ParserError: 784: unexpected token at >> 'skuProducts=[{"skuAttr":"27763:201336100;491:24763#145cm","skuPropIds" >> >> >> > > I understand why

Re: [Rails] text visible in browser but not in source

2019-02-06 Thread Colin Law
On Wed, 6 Feb 2019 at 21:42, fugee ohu wrote: > ... > JSON::ParserError: 784: unexpected token at > 'skuProducts=[{"skuAttr":"27763:201336100;491:24763#145cm","skuPropIds" > > I understand why people get annoyed with your posts. What is the point of posting a string that is obviously no

Re: [Rails] text visible in browser but not in source

2019-02-06 Thread fugee ohu
On Monday, February 4, 2019 at 6:43:48 PM UTC-5, Walter Lee Davis wrote: > > > > On Feb 4, 2019, at 12:27 PM, fugee ohu > > wrote: > > > > > > > > On Monday, February 4, 2019 at 8:10:33 AM UTC-5, Walter Lee Davis wrote: > > > > > On Feb 4, 2019, at 7:35 AM, fugee ohu wrote: > > > > > >

Re: [Rails] text visible in browser but not in source

2019-02-04 Thread fugee ohu
On Monday, February 4, 2019 at 6:43:48 PM UTC-5, Walter Lee Davis wrote: > > > > On Feb 4, 2019, at 12:27 PM, fugee ohu > > wrote: > > > > > > > > On Monday, February 4, 2019 at 8:10:33 AM UTC-5, Walter Lee Davis wrote: > > > > > On Feb 4, 2019, at 7:35 AM, fugee ohu wrote: > > > > > >

Re: [Rails] text visible in browser but not in source

2019-02-04 Thread fugee ohu
On Monday, February 4, 2019 at 6:43:48 PM UTC-5, Walter Lee Davis wrote: > > > > On Feb 4, 2019, at 12:27 PM, fugee ohu > > wrote: > > > > > > > > On Monday, February 4, 2019 at 8:10:33 AM UTC-5, Walter Lee Davis wrote: > > > > > On Feb 4, 2019, at 7:35 AM, fugee ohu wrote: > > > > > >

Re: [Rails] text visible in browser but not in source

2019-02-04 Thread Walter Lee Davis
> On Feb 4, 2019, at 12:27 PM, fugee ohu wrote: > > > > On Monday, February 4, 2019 at 8:10:33 AM UTC-5, Walter Lee Davis wrote: > > > On Feb 4, 2019, at 7:35 AM, fugee ohu wrote: > > > > > > > > On Sunday, February 3, 2019 at 9:54:25 PM UTC-5, Walter Lee Davis wrote: > > > > > On Feb

Re: [Rails] text visible in browser but not in source

2019-02-04 Thread fugee ohu
On Monday, February 4, 2019 at 8:10:33 AM UTC-5, Walter Lee Davis wrote: > > > > On Feb 4, 2019, at 7:35 AM, fugee ohu > > wrote: > > > > > > > > On Sunday, February 3, 2019 at 9:54:25 PM UTC-5, Walter Lee Davis wrote: > > > > > On Feb 3, 2019, at 7:14 PM, fugee ohu wrote: > > > > > >

Re: [Rails] text visible in browser but not in source

2019-02-04 Thread Walter Lee Davis
> On Feb 4, 2019, at 7:35 AM, fugee ohu wrote: > > > > On Sunday, February 3, 2019 at 9:54:25 PM UTC-5, Walter Lee Davis wrote: > > > On Feb 3, 2019, at 7:14 PM, fugee ohu wrote: > > > > > > > > On Wednesday, January 30, 2019 at 5:16:59 PM UTC-5, Colin Law wrote: > > On Wed, 30 Jan 201

Re: [Rails] text visible in browser but not in source

2019-02-04 Thread fugee ohu
On Sunday, February 3, 2019 at 9:54:25 PM UTC-5, Walter Lee Davis wrote: > > > > On Feb 3, 2019, at 7:14 PM, fugee ohu > > wrote: > > > > > > > > On Wednesday, January 30, 2019 at 5:16:59 PM UTC-5, Colin Law wrote: > > On Wed, 30 Jan 2019 at 22:12, Colin Law wrote: > > > > > > On Wed, 30

Re: [Rails] text visible in browser but not in source

2019-02-04 Thread fugee ohu
On Sunday, February 3, 2019 at 9:54:25 PM UTC-5, Walter Lee Davis wrote: > > > > On Feb 3, 2019, at 7:14 PM, fugee ohu > > wrote: > > > > > > > > On Wednesday, January 30, 2019 at 5:16:59 PM UTC-5, Colin Law wrote: > > On Wed, 30 Jan 2019 at 22:12, Colin Law wrote: > > > > > > On Wed, 30

Re: [Rails] text visible in browser but not in source

2019-02-03 Thread fugee ohu
On Sunday, February 3, 2019 at 9:54:25 PM UTC-5, Walter Lee Davis wrote: > > > > On Feb 3, 2019, at 7:14 PM, fugee ohu > > wrote: > > > > > > > > On Wednesday, January 30, 2019 at 5:16:59 PM UTC-5, Colin Law wrote: > > On Wed, 30 Jan 2019 at 22:12, Colin Law wrote: > > > > > > On Wed, 30

Re: [Rails] text visible in browser but not in source

2019-02-03 Thread Walter Lee Davis
> On Feb 3, 2019, at 7:14 PM, fugee ohu wrote: > > > > On Wednesday, January 30, 2019 at 5:16:59 PM UTC-5, Colin Law wrote: > On Wed, 30 Jan 2019 at 22:12, Colin Law wrote: > > > > On Wed, 30 Jan 2019 at 22:09, fugee ohu wrote: > > > > > > > > > > > > On Wednesday, January 30, 2019 at

Re: [Rails] text visible in browser but not in source

2019-02-03 Thread fugee ohu
On Wednesday, January 30, 2019 at 5:16:59 PM UTC-5, Colin Law wrote: > > On Wed, 30 Jan 2019 at 22:12, Colin Law > > wrote: > > > > On Wed, 30 Jan 2019 at 22:09, fugee ohu > > wrote: > > > > > > > > > > > > On Wednesday, January 30, 2019 at 5:02:17 PM UTC-5, Colin Law wrote: > > >> > >

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread fugee ohu
On Wednesday, January 30, 2019 at 5:16:59 PM UTC-5, Colin Law wrote: > > On Wed, 30 Jan 2019 at 22:12, Colin Law > > wrote: > > > > On Wed, 30 Jan 2019 at 22:09, fugee ohu > > wrote: > > > > > > > > > > > > On Wednesday, January 30, 2019 at 5:02:17 PM UTC-5, Colin Law wrote: > > >> > >

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread fugee ohu
On Wednesday, January 30, 2019 at 5:13:03 PM UTC-5, Colin Law wrote: > > On Wed, 30 Jan 2019 at 22:09, fugee ohu > > wrote: > > > > > > > > On Wednesday, January 30, 2019 at 5:02:17 PM UTC-5, Colin Law wrote: > >> > >> On Wed, 30 Jan 2019 at 21:56, fugee ohu wrote: > >> > ... > >> > Eve

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread Colin Law
On Wed, 30 Jan 2019 at 22:12, Colin Law wrote: > > On Wed, 30 Jan 2019 at 22:09, fugee ohu wrote: > > > > > > > > On Wednesday, January 30, 2019 at 5:02:17 PM UTC-5, Colin Law wrote: > >> > >> On Wed, 30 Jan 2019 at 21:56, fugee ohu wrote: > >> > ... > >> > Everything in the unparsed resonse bod

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread Colin Law
On Wed, 30 Jan 2019 at 22:09, fugee ohu wrote: > > > > On Wednesday, January 30, 2019 at 5:02:17 PM UTC-5, Colin Law wrote: >> >> On Wed, 30 Jan 2019 at 21:56, fugee ohu wrote: >> > ... >> > Everything in the unparsed resonse body that I want is between [ and ] I >> > have to gsub it out >> >> >

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread Colin Law
On Wed, 30 Jan 2019 at 22:05, fugee ohu wrote: > > How do I chomp everything at the end of the string starting with ] You don't. What you have already is fine. Read my previous email. Colin > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: T

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread fugee ohu
On Wednesday, January 30, 2019 at 5:02:17 PM UTC-5, Colin Law wrote: > > On Wed, 30 Jan 2019 at 21:56, fugee ohu > > wrote: > > ... > > Everything in the unparsed resonse body that I want is between [ and ] I > have to gsub it out > > > No you don't. After you get parsed_obj["results] (whic

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread fugee ohu
On Wednesday, January 30, 2019 at 12:44:53 PM UTC-5, Colin Law wrote: > > On Wed, 30 Jan 2019 at 16:41, fugee ohu > > wrote: > > > > > > > > On Wednesday, January 30, 2019 at 9:45:03 AM UTC-5, Colin Law wrote: > >> > >> On Wed, 30 Jan 2019 at 13:48, fugee ohu wrote: > >> > > >> >> > >>

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread Colin Law
On Wed, 30 Jan 2019 at 21:56, fugee ohu wrote: > ... > Everything in the unparsed resonse body that I want is between [ and ] I have > to gsub it out No you don't. After you get parsed_obj["results] (which is an array, that's what the [] mean) then you can get the first product by parsed_obj["

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread fugee ohu
On Wednesday, January 30, 2019 at 12:44:53 PM UTC-5, Colin Law wrote: > > On Wed, 30 Jan 2019 at 16:41, fugee ohu > > wrote: > > > > > > > > On Wednesday, January 30, 2019 at 9:45:03 AM UTC-5, Colin Law wrote: > >> > >> On Wed, 30 Jan 2019 at 13:48, fugee ohu wrote: > >> > > >> >> > >>

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread Colin Law
On Wed, 30 Jan 2019 at 16:41, fugee ohu wrote: > > > > On Wednesday, January 30, 2019 at 9:45:03 AM UTC-5, Colin Law wrote: >> >> On Wed, 30 Jan 2019 at 13:48, fugee ohu wrote: >> > >> >> >> >> Show us what puts parsed_obj["results"] gives. If it is long then >> >> from the start up to where pro

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread fugee ohu
On Wednesday, January 30, 2019 at 9:45:03 AM UTC-5, Colin Law wrote: > > On Wed, 30 Jan 2019 at 13:48, fugee ohu > > wrote: > > > >> > >> Show us what puts parsed_obj["results"] gives. If it is long then > >> from the start up to where productID occurs. > >> > >> Colin > > > > > > {"p

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread Colin Law
On Wed, 30 Jan 2019 at 13:48, fugee ohu wrote: > >> >> Show us what puts parsed_obj["results"] gives. If it is long then >> from the start up to where productID occurs. >> >> Colin > > > {"productId"=>32970292001, "sellerId"=>235696817, "oriMinPrice"=>"US > $50.00", "oriMaxPrice"=>"US $50.00",

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread fugee ohu
On Wednesday, January 30, 2019 at 6:54:36 AM UTC-5, Colin Law wrote: > > On Wed, 30 Jan 2019 at 11:19, fugee ohu > > wrote: > > ... > > puts parsed_obj["results"] shows the entire results but `puts > parsed_obj["results"]["productId"] gets me error no implicit conversion of > String into In

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread Colin Law
On Wed, 30 Jan 2019 at 11:19, fugee ohu wrote: > ... > puts parsed_obj["results"] shows the entire results but `puts > parsed_obj["results"]["productId"] gets me error no implicit conversion of > String into Integer Show us what puts parsed_obj["results"] gives. If it is long then from the st

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread fugee ohu
On Wednesday, January 30, 2019 at 5:15:54 AM UTC-5, Colin Law wrote: > > On Wed, 30 Jan 2019 at 10:09, fugee ohu > > wrote: > > > > How would I get results->productId > > results["productId"] > > Colin > puts parsed_obj["results"] shows the entire results but `puts parsed_obj["results"][

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread fugee ohu
On Wednesday, January 30, 2019 at 5:15:54 AM UTC-5, Colin Law wrote: > > On Wed, 30 Jan 2019 at 10:09, fugee ohu > > wrote: > > > > How would I get results->productId > > results["productId"] > > Colin > than -- You received this message because you are subscribed to the Google Groups "

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread Colin Law
On Wed, 30 Jan 2019 at 10:09, fugee ohu wrote: > > How would I get results->productId results["productId"] Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread fugee ohu
On Wednesday, January 30, 2019 at 5:06:13 AM UTC-5, Colin Law wrote: > > On Wed, 30 Jan 2019 at 09:55, fugee ohu > > wrote: > > ... > > I can print the outer values of parsed_obj with an iteration loop > > parsed_obj.each |key, val| do > > can you tell me how do i select individual keys with

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread Colin Law
On Wed, 30 Jan 2019 at 09:55, fugee ohu wrote: > ... > I can print the outer values of parsed_obj with an iteration loop > parsed_obj.each |key, val| do > can you tell me how do i select individual keys within the nested hash > 'results' Does that mean you have parsed it ok? Isn't it obvious?

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread fugee ohu
On Wednesday, January 30, 2019 at 4:36:29 AM UTC-5, fugee ohu wrote: > > > > On Wednesday, January 30, 2019 at 2:02:06 AM UTC-5, Colin Law wrote: >> >> >> >> On Wed, 30 Jan 2019, 03:52 fugee ohu > >>> >>> >>> On Tuesday, January 29, 2019 at 4:21:43 AM UTC-5, Colin Law wrote: On Tue, 29

Re: [Rails] text visible in browser but not in source

2019-01-30 Thread fugee ohu
On Wednesday, January 30, 2019 at 2:02:06 AM UTC-5, Colin Law wrote: > > > > On Wed, 30 Jan 2019, 03:52 fugee ohu > wrote: > >> >> >> On Tuesday, January 29, 2019 at 4:21:43 AM UTC-5, Colin Law wrote: >>> >>> On Tue, 29 Jan 2019 at 03:20, fugee ohu wrote: >>> > ... >>> > Can you give me an i

Re: [Rails] text visible in browser but not in source

2019-01-29 Thread Colin Law
On Wed, 30 Jan 2019, 03:52 fugee ohu > > On Tuesday, January 29, 2019 at 4:21:43 AM UTC-5, Colin Law wrote: >> >> On Tue, 29 Jan 2019 at 03:20, fugee ohu wrote: >> > ... >> > Can you give me an idea how to extract it >> >> Are you seriously asking, after the years that you have been using >> Ruby

Re: [Rails] text visible in browser but not in source

2019-01-29 Thread fugee ohu
On Tuesday, January 29, 2019 at 4:21:43 AM UTC-5, Colin Law wrote: > > On Tue, 29 Jan 2019 at 03:20, fugee ohu > > wrote: > > ... > > Can you give me an idea how to extract it > > Are you seriously asking, after the years that you have been using > Ruby, that you don't know how to extract a

Re: [Rails] text visible in browser but not in source

2019-01-29 Thread Naveen Goud
Hi, Can anyone help how to work this projects On Tue, Jan 29, 2019 at 2:51 PM Colin Law wrote: > On Tue, 29 Jan 2019 at 03:20, fugee ohu wrote: > > ... > > Can you give me an idea how to extract it > > Are you seriously asking, after the years that you have been using > Ruby, that you don't kn

Re: [Rails] text visible in browser but not in source

2019-01-29 Thread Colin Law
On Tue, 29 Jan 2019 at 03:20, fugee ohu wrote: > ... > Can you give me an idea how to extract it Are you seriously asking, after the years that you have been using Ruby, that you don't know how to extract a particular section from a string? Apart from anything else, since I haven't got access to

Re: [Rails] text visible in browser but not in source

2019-01-28 Thread fugee ohu
On Sunday, December 30, 2018 at 8:36:40 AM UTC-5, Colin Law wrote: > > On Sun, 30 Dec 2018 at 12:06, fugee ohu > > wrote: > > ... > > It's not json it's javascript so I don't have to run JSON.parse > > {"success":true,"code":0,"results":[{"productId":3281905, ... > Looks like JSON to me

Re: [Rails] text visible in browser but not in source

2019-01-28 Thread fugee ohu
On Sunday, December 30, 2018 at 8:36:40 AM UTC-5, Colin Law wrote: > > On Sun, 30 Dec 2018 at 12:06, fugee ohu > > wrote: > > ... > > It's not json it's javascript so I don't have to run JSON.parse > > {"success":true,"code":0,"results":[{"productId":3281905, ... > Looks like JSON to me

Re: [Rails] text visible in browser but not in source

2019-01-02 Thread Jake Niemiec
If you get “Connection reset by peer” while scraping a website, it is very likely that your scraping attempts were detected and automatically blocked for a while. They might have also been alerted by all of these malformed requests. Consider pacing out your requests so that it doesn’t look like yo

Re: [Rails] text visible in browser but not in source

2018-12-31 Thread fugee ohu
On Monday, December 31, 2018 at 7:25:13 AM UTC-5, Colin Law wrote: > > On Mon, 31 Dec 2018 at 12:12, fugee ohu > > wrote: > > > > > > > > On Sunday, December 30, 2018 at 10:56:30 AM UTC-5, Colin Law wrote: > >> > >> On Sun, 30 Dec 2018 at 15:45, fugee ohu wrote: > >> > > >> > > >> > >

Re: [Rails] text visible in browser but not in source

2018-12-31 Thread fugee ohu
On Monday, December 31, 2018 at 7:25:13 AM UTC-5, Colin Law wrote: > > On Mon, 31 Dec 2018 at 12:12, fugee ohu > > wrote: > > > > > > > > On Sunday, December 30, 2018 at 10:56:30 AM UTC-5, Colin Law wrote: > >> > >> On Sun, 30 Dec 2018 at 15:45, fugee ohu wrote: > >> > > >> > > >> > >

Re: [Rails] text visible in browser but not in source

2018-12-31 Thread fugee ohu
On Monday, December 31, 2018 at 7:25:13 AM UTC-5, Colin Law wrote: > > On Mon, 31 Dec 2018 at 12:12, fugee ohu > > wrote: > > > > > > > > On Sunday, December 30, 2018 at 10:56:30 AM UTC-5, Colin Law wrote: > >> > >> On Sun, 30 Dec 2018 at 15:45, fugee ohu wrote: > >> > > >> > > >> > >

Re: [Rails] text visible in browser but not in source

2018-12-31 Thread Colin Law
On Mon, 31 Dec 2018 at 12:12, fugee ohu wrote: > > > > On Sunday, December 30, 2018 at 10:56:30 AM UTC-5, Colin Law wrote: >> >> On Sun, 30 Dec 2018 at 15:45, fugee ohu wrote: >> > >> > >> > >> > On Sunday, December 30, 2018 at 8:36:40 AM UTC-5, Colin Law wrote: >> >> >> >> On Sun, 30 Dec 2018 at

Re: [Rails] text visible in browser but not in source

2018-12-31 Thread Colin Law
On Mon, 31 Dec 2018 at 05:26, fugee ohu wrote: > > > > On Sunday, December 30, 2018 at 10:56:30 AM UTC-5, Colin Law wrote: >> >> On Sun, 30 Dec 2018 at 15:45, fugee ohu wrote: >> > >> > >> > >> > On Sunday, December 30, 2018 at 8:36:40 AM UTC-5, Colin Law wrote: >> >> >> >> On Sun, 30 Dec 2018 at

Re: [Rails] text visible in browser but not in source

2018-12-31 Thread fugee ohu
On Sunday, December 30, 2018 at 10:56:30 AM UTC-5, Colin Law wrote: > > On Sun, 30 Dec 2018 at 15:45, fugee ohu > > wrote: > > > > > > > > On Sunday, December 30, 2018 at 8:36:40 AM UTC-5, Colin Law wrote: > >> > >> On Sun, 30 Dec 2018 at 12:06, fugee ohu wrote: > >> > ... > >> > It's n

Re: [Rails] text visible in browser but not in source

2018-12-30 Thread fugee ohu
On Sunday, December 30, 2018 at 10:56:30 AM UTC-5, Colin Law wrote: > > On Sun, 30 Dec 2018 at 15:45, fugee ohu > > wrote: > > > > > > > > On Sunday, December 30, 2018 at 8:36:40 AM UTC-5, Colin Law wrote: > >> > >> On Sun, 30 Dec 2018 at 12:06, fugee ohu wrote: > >> > ... > >> > It's n

Re: [Rails] text visible in browser but not in source

2018-12-30 Thread fugee ohu
On Sunday, December 30, 2018 at 10:56:30 AM UTC-5, Colin Law wrote: > > On Sun, 30 Dec 2018 at 15:45, fugee ohu > > wrote: > > > > > > > > On Sunday, December 30, 2018 at 8:36:40 AM UTC-5, Colin Law wrote: > >> > >> On Sun, 30 Dec 2018 at 12:06, fugee ohu wrote: > >> > ... > >> > It's n

Re: [Rails] text visible in browser but not in source

2018-12-30 Thread Hassan Schroeder
On Sun, Dec 30, 2018 at 3:37 AM fugee ohu wrote: >> > You mean the Net::HTTP docs? I don't know I haven't thought to read them 🙄 > I found this page > http://po-ru.com/diary/turning-jsonp-callbacks-into-a-ruby-api-with-johnson/ > but don't understand it That's an interesting approach though `

Re: [Rails] text visible in browser but not in source

2018-12-30 Thread Colin Law
On Sun, 30 Dec 2018 at 15:45, fugee ohu wrote: > > > > On Sunday, December 30, 2018 at 8:36:40 AM UTC-5, Colin Law wrote: >> >> On Sun, 30 Dec 2018 at 12:06, fugee ohu wrote: >> > ... >> > It's not json it's javascript so I don't have to run JSON.parse >> >> {"success":true,"code":0,"results":[{"

Re: [Rails] text visible in browser but not in source

2018-12-30 Thread fugee ohu
On Sunday, December 30, 2018 at 8:36:40 AM UTC-5, Colin Law wrote: > > On Sun, 30 Dec 2018 at 12:06, fugee ohu > > wrote: > > ... > > It's not json it's javascript so I don't have to run JSON.parse > > {"success":true,"code":0,"results":[{"productId":3281905, ... > Looks like JSON to me

Re: [Rails] text visible in browser but not in source

2018-12-30 Thread Colin Law
On Sun, 30 Dec 2018 at 12:06, fugee ohu wrote: > ... > It's not json it's javascript so I don't have to run JSON.parse {"success":true,"code":0,"results":[{"productId":3281905, ... Looks like JSON to me (embedded in js admittedly). You said that the data you want is in that string. If that

Re: [Rails] text visible in browser but not in source

2018-12-30 Thread fugee ohu
On Saturday, December 29, 2018 at 10:02:07 AM UTC-5, Walter Lee Davis wrote: > > > > On Dec 29, 2018, at 7:13 AM, fugee ohu > > wrote: > > > > > > > > On Saturday, December 29, 2018 at 6:48:22 AM UTC-5, Colin Law wrote: > > On Sat, 29 Dec 2018 at 11:16, fugee ohu wrote: > > > ... > > >

Re: [Rails] text visible in browser but not in source

2018-12-30 Thread fugee ohu
On Friday, December 28, 2018 at 3:37:12 PM UTC-5, Hassan Schroeder wrote: > > On Thu, Dec 27, 2018 at 11:29 PM fugee ohu > wrote: > > >> On Thu, Dec 27, 2018 at 4:10 PM fugee ohu wrote: > > > What docs? You asked if I passed in an `accept request header` so I > asked if I need to You're obsc

Re: [Rails] text visible in browser but not in source

2018-12-30 Thread fugee ohu
On Saturday, December 29, 2018 at 10:02:07 AM UTC-5, Walter Lee Davis wrote: > > > > On Dec 29, 2018, at 7:13 AM, fugee ohu > > wrote: > > > > > > > > On Saturday, December 29, 2018 at 6:48:22 AM UTC-5, Colin Law wrote: > > On Sat, 29 Dec 2018 at 11:16, fugee ohu wrote: > > > ... > > >

Re: [Rails] text visible in browser but not in source

2018-12-29 Thread Walter Lee Davis
> On Dec 29, 2018, at 7:13 AM, fugee ohu wrote: > > > > On Saturday, December 29, 2018 at 6:48:22 AM UTC-5, Colin Law wrote: > On Sat, 29 Dec 2018 at 11:16, fugee ohu wrote: > > ... > > It's not clear to me what the response is Can the problem be that my > > request is the full url with

Re: [Rails] text visible in browser but not in source

2018-12-28 Thread fugee ohu
On Friday, December 28, 2018 at 11:04:37 AM UTC-5, Colin Law wrote: > > On Fri, 28 Dec 2018 at 15:53, fugee ohu > > wrote: > > ... > > I don't know what a valid json response is supposed to look like Also I > don't know if it makes a difference they're using Struts framework > > Once again

Re: [Rails] text visible in browser but not in source

2018-12-28 Thread fugee ohu
On Friday, December 28, 2018 at 11:04:37 AM UTC-5, Colin Law wrote: > > On Fri, 28 Dec 2018 at 15:53, fugee ohu > > wrote: > > ... > > I don't know what a valid json response is supposed to look like Also I > don't know if it makes a difference they're using Struts framework > > Once again

Re: [Rails] text visible in browser but not in source

2018-12-28 Thread Hassan Schroeder
On Thu, Dec 27, 2018 at 11:29 PM fugee ohu wrote: >> On Thu, Dec 27, 2018 at 4:10 PM fugee ohu wrote: > What docs? You asked if I passed in an `accept request header` so I asked if > I need to You're obscuring this thread >> > So I need to pass in accept request header json as the first param

Re: [Rails] text visible in browser but not in source

2018-12-28 Thread Colin Law
On Fri, 28 Dec 2018 at 15:53, fugee ohu wrote: > ... > I don't know what a valid json response is supposed to look like Also I don't > know if it makes a difference they're using Struts framework Once again I have googled for a link for you https://www.w3schools.com/whatis/whatis_json.asp Coli

Re: [Rails] text visible in browser but not in source

2018-12-28 Thread fugee ohu
On Friday, December 28, 2018 at 9:38:38 AM UTC-5, Colin Law wrote: > > On Fri, 28 Dec 2018 at 14:19, fugee ohu > > wrote: > > > > > > > > On Friday, December 28, 2018 at 8:38:14 AM UTC-5, Colin Law wrote: > >> > >> On Fri, 28 Dec 2018 at 12:58, fugee ohu wrote: > >> > ... > >> > Yes the

Re: [Rails] text visible in browser but not in source

2018-12-28 Thread Colin Law
On Fri, 28 Dec 2018 at 14:19, fugee ohu wrote: > > > > On Friday, December 28, 2018 at 8:38:14 AM UTC-5, Colin Law wrote: >> >> On Fri, 28 Dec 2018 at 12:58, fugee ohu wrote: >> > ... >> > Yes the sources tab showed the script and it's output, a string, but how >> > do I parse it into an object?

Re: [Rails] text visible in browser but not in source

2018-12-28 Thread fugee ohu
On Friday, December 28, 2018 at 8:38:14 AM UTC-5, Colin Law wrote: > > On Fri, 28 Dec 2018 at 12:58, fugee ohu > > wrote: > > ... > > Yes the sources tab showed the script and it's output, a string, but how > do I parse it into an object? > > If it is a JSON string then JSON.parse should do

Re: [Rails] text visible in browser but not in source

2018-12-28 Thread Colin Law
On Fri, 28 Dec 2018 at 12:58, fugee ohu wrote: > ... > Yes the sources tab showed the script and it's output, a string, but how do I > parse it into an object? If it is a JSON string then JSON.parse should do it. If it is not then perhaps you need to strip something off to get to be valid JSON.

Re: [Rails] text visible in browser but not in source

2018-12-28 Thread fugee ohu
On Wednesday, November 7, 2018 at 12:28:05 PM UTC-5, Jake Niemiec wrote: > > The ui-box class would indicate that it is a react component: > https://github.com/segmentio/ui-box > > React components are run client-side, meaning the text you are looking for > is inserted into the document after t

Re: [Rails] text visible in browser but not in source

2018-12-28 Thread fugee ohu
On Wednesday, November 7, 2018 at 12:28:05 PM UTC-5, Jake Niemiec wrote: > > The ui-box class would indicate that it is a react component: > https://github.com/segmentio/ui-box > > React components are run client-side, meaning the text you are looking for > is inserted into the document after t

Re: [Rails] text visible in browser but not in source

2018-12-28 Thread fugee ohu
On Thursday, December 27, 2018 at 8:07:19 PM UTC-5, Hassan Schroeder wrote: > > On Thu, Dec 27, 2018 at 4:10 PM fugee ohu > > wrote: > > > So I need to pass in accept request header json as the first parameter > to NET::HTTP ? > > Is that what the docs say? > > -- > Hassan Schroeder ---

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 1:38:34 PM UTC-5, Walter Lee Davis wrote: > > > > On Dec 26, 2018, at 5:12 PM, fugee ohu > > wrote: > > > > > > > > On Wednesday, December 26, 2018 at 4:41:53 AM UTC-5, Colin Law wrote: > > On Tue, 25 Dec 2018 at 20:19, fugee ohu wrote: > > > > > > yes,

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 8:07:19 PM UTC-5, Hassan Schroeder wrote: > > On Thu, Dec 27, 2018 at 4:10 PM fugee ohu > > wrote: > > > So I need to pass in accept request header json as the first parameter > to NET::HTTP ? > > Is that what the docs say? > > -- > Hassan Schroeder ---

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 5:46:59 PM UTC-5, Hassan Schroeder wrote: > > On Thu, Dec 27, 2018 at 2:00 PM fugee ohu > > wrote: > > > Net::HTTP.get() returns a string > > data = JSON.parse(response) > > JSON::ParserError: 765: unexpected token at > 'jQuery1830644047005491_154589

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread Hassan Schroeder
On Thu, Dec 27, 2018 at 4:10 PM fugee ohu wrote: > So I need to pass in accept request header json as the first parameter to > NET::HTTP ? Is that what the docs say? -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan Consulting Availability : Silicon Vall

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 5:46:59 PM UTC-5, Hassan Schroeder wrote: > > On Thu, Dec 27, 2018 at 2:00 PM fugee ohu > > wrote: > > > Net::HTTP.get() returns a string > > data = JSON.parse(response) > > JSON::ParserError: 765: unexpected token at > 'jQuery1830644047005491_154589

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread Hassan Schroeder
On Thu, Dec 27, 2018 at 2:00 PM fugee ohu wrote: > Net::HTTP.get() returns a string > data = JSON.parse(response) > JSON::ParserError: 765: unexpected token at > 'jQuery1830644047005491_154589753({"success":true,"code":0,"results":[{"productId" Did you ask for JSON data via the Accept r

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 5:17:05 PM UTC-5, Colin Law wrote: > > On Thu, 27 Dec 2018 at 22:00, fugee ohu > > wrote: > > > > > > > > On Thursday, December 27, 2018 at 4:04:55 PM UTC-5, Hassan Schroeder > wrote: > >> > >> On Thu, Dec 27, 2018 at 12:24 PM fugee ohu wrote: > >> > >

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread Colin Law
On Thu, 27 Dec 2018 at 22:00, fugee ohu wrote: > > > > On Thursday, December 27, 2018 at 4:04:55 PM UTC-5, Hassan Schroeder wrote: >> >> On Thu, Dec 27, 2018 at 12:24 PM fugee ohu wrote: >> >> > So then how >> >> 1) choose HTTP client >> 2) send request >> 3) parse response >> >> -- >> Hassan Sch

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 4:04:55 PM UTC-5, Hassan Schroeder wrote: > > On Thu, Dec 27, 2018 at 12:24 PM fugee ohu > wrote: > > > So then how > > 1) choose HTTP client > 2) send request > 3) parse response > > -- > Hassan Schroeder hassan.s...@gmail.com >

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 1:38:34 PM UTC-5, Walter Lee Davis wrote: > > > > On Dec 26, 2018, at 5:12 PM, fugee ohu > > wrote: > > > > > > > > On Wednesday, December 26, 2018 at 4:41:53 AM UTC-5, Colin Law wrote: > > On Tue, 25 Dec 2018 at 20:19, fugee ohu wrote: > > > > > > yes,

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 1:38:34 PM UTC-5, Walter Lee Davis wrote: > > > > On Dec 26, 2018, at 5:12 PM, fugee ohu > > wrote: > > > > > > > > On Wednesday, December 26, 2018 at 4:41:53 AM UTC-5, Colin Law wrote: > > On Tue, 25 Dec 2018 at 20:19, fugee ohu wrote: > > > > > > yes,

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 1:38:34 PM UTC-5, Walter Lee Davis wrote: > > > > On Dec 26, 2018, at 5:12 PM, fugee ohu > > wrote: > > > > > > > > On Wednesday, December 26, 2018 at 4:41:53 AM UTC-5, Colin Law wrote: > > On Tue, 25 Dec 2018 at 20:19, fugee ohu wrote: > > > > > > yes,

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread Hassan Schroeder
On Thu, Dec 27, 2018 at 12:24 PM fugee ohu wrote: > So then how 1) choose HTTP client 2) send request 3) parse response -- Hassan Schroeder hassan.schroe...@gmail.com twitter: @hassan Consulting Availability : Silicon Valley or remote -- You received this message bec

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread fugee ohu
On Thursday, December 27, 2018 at 1:38:34 PM UTC-5, Walter Lee Davis wrote: > > > > On Dec 26, 2018, at 5:12 PM, fugee ohu > > wrote: > > > > > > > > On Wednesday, December 26, 2018 at 4:41:53 AM UTC-5, Colin Law wrote: > > On Tue, 25 Dec 2018 at 20:19, fugee ohu wrote: > > > > > > yes,

Re: [Rails] text visible in browser but not in source

2018-12-27 Thread Walter Lee Davis
> On Dec 26, 2018, at 5:12 PM, fugee ohu wrote: > > > > On Wednesday, December 26, 2018 at 4:41:53 AM UTC-5, Colin Law wrote: > On Tue, 25 Dec 2018 at 20:19, fugee ohu wrote: > > > > yes, there's scripts running and when i click response i see the data i'm > > looking for The script names

Re: [Rails] text visible in browser but not in source

2018-12-26 Thread fugee ohu
On Wednesday, December 26, 2018 at 4:41:53 AM UTC-5, Colin Law wrote: > > On Tue, 25 Dec 2018 at 20:19, fugee ohu > > wrote: > > > > yes, there's scripts running and when i click response i see the data > i'm looking for The script names are https urls ending in .do? with a lot > of query st

Re: [Rails] text visible in browser but not in source

2018-12-26 Thread Colin Law
On Tue, 25 Dec 2018 at 20:19, fugee ohu wrote: > > yes, there's scripts running and when i click response i see the data i'm > looking for The script names are https urls ending in .do? with a lot of > query string data, so what should I do? Don't worry about scripts for the moment, look for ur

Re: [Rails] text visible in browser but not in source

2018-12-25 Thread fugee ohu
On Saturday, November 10, 2018 at 4:57:54 PM UTC-5, Colin Law wrote: > > On Sat, 10 Nov 2018 at 21:28, fugee ohu > > wrote: > > > > > > > > On Saturday, November 10, 2018 at 12:26:40 PM UTC-5, Colin Law wrote: > >> > >> On Sat, 10 Nov 2018 at 17:23, fugee ohu wrote: > >> > ... > >> > It

Re: [Rails] text visible in browser but not in source

2018-12-25 Thread fugee ohu
On Saturday, November 10, 2018 at 4:57:54 PM UTC-5, Colin Law wrote: > > On Sat, 10 Nov 2018 at 21:28, fugee ohu > > wrote: > > > > > > > > On Saturday, November 10, 2018 at 12:26:40 PM UTC-5, Colin Law wrote: > >> > >> On Sat, 10 Nov 2018 at 17:23, fugee ohu wrote: > >> > ... > >> > It

Re: [Rails] text visible in browser but not in source

2018-12-25 Thread fugee ohu
On Saturday, November 10, 2018 at 4:57:54 PM UTC-5, Colin Law wrote: > > On Sat, 10 Nov 2018 at 21:28, fugee ohu > > wrote: > > > > > > > > On Saturday, November 10, 2018 at 12:26:40 PM UTC-5, Colin Law wrote: > >> > >> On Sat, 10 Nov 2018 at 17:23, fugee ohu wrote: > >> > ... > >> > It

Re: [Rails] text visible in browser but not in source

2018-11-10 Thread fugee ohu
On Saturday, November 10, 2018 at 4:57:54 PM UTC-5, Colin Law wrote: > > On Sat, 10 Nov 2018 at 21:28, fugee ohu > > wrote: > > > > > > > > On Saturday, November 10, 2018 at 12:26:40 PM UTC-5, Colin Law wrote: > >> > >> On Sat, 10 Nov 2018 at 17:23, fugee ohu wrote: > >> > ... > >> > It

Re: [Rails] text visible in browser but not in source

2018-11-10 Thread fugee ohu
On Saturday, November 10, 2018 at 4:57:54 PM UTC-5, Colin Law wrote: > > On Sat, 10 Nov 2018 at 21:28, fugee ohu > > wrote: > > > > > > > > On Saturday, November 10, 2018 at 12:26:40 PM UTC-5, Colin Law wrote: > >> > >> On Sat, 10 Nov 2018 at 17:23, fugee ohu wrote: > >> > ... > >> > It

  1   2   >