workspace
stringclasses
1 value
channel
stringclasses
1 value
sentences
stringlengths
1
3.93k
ts
stringlengths
26
26
user
stringlengths
2
11
sentence_id
stringlengths
44
53
timestamp
float64
1.5B
1.56B
__index_level_0__
int64
0
106k
pythondev
help
turned out, it worked best for online video classes, specifically my calc 2 class
2017-08-22T11:19:12.000678
Meg
pythondev_help_Meg_2017-08-22T11:19:12.000678
1,503,400,752.000678
90,503
pythondev
help
also when you have a baby and don’t want that baby to wake up you get used to it.
2017-08-22T11:19:22.000637
Johana
pythondev_help_Johana_2017-08-22T11:19:22.000637
1,503,400,762.000637
90,504
pythondev
help
lol
2017-08-22T11:19:28.000104
Johana
pythondev_help_Johana_2017-08-22T11:19:28.000104
1,503,400,768.000104
90,505
pythondev
help
ha yeah
2017-08-22T11:19:29.000351
Meg
pythondev_help_Meg_2017-08-22T11:19:29.000351
1,503,400,769.000351
90,506
pythondev
help
I can imagine, wou;dn't know from personal experience :smile:
2017-08-22T11:19:50.000014
Meg
pythondev_help_Meg_2017-08-22T11:19:50.000014
1,503,400,790.000014
90,507
pythondev
help
that’s when i noticed w/ subtitles i picked up more on the conversation or little giveaways.
2017-08-22T11:19:54.000126
Johana
pythondev_help_Johana_2017-08-22T11:19:54.000126
1,503,400,794.000126
90,508
pythondev
help
dragon is really nice.
2017-08-22T11:21:12.000500
Johana
pythondev_help_Johana_2017-08-22T11:21:12.000500
1,503,400,872.0005
90,509
pythondev
help
my wife was an aspiring writer for a couple years and she used that.
2017-08-22T11:21:25.000409
Johana
pythondev_help_Johana_2017-08-22T11:21:25.000409
1,503,400,885.000409
90,510
pythondev
help
again, b/c of baby. lol
2017-08-22T11:21:40.000551
Johana
pythondev_help_Johana_2017-08-22T11:21:40.000551
1,503,400,900.000551
90,511
pythondev
help
Hey, I'm trying to scrape "<http://www.fangraphs.com/leaders.aspx?pos=all&amp;stats=pit&amp;lg=all&amp;qual=y&amp;type=8&amp;season=2017&amp;month=0&amp;season1=2016&amp;ind=0&amp;team=0&amp;rost=0&amp;age=0&amp;filter=&amp;players=0>" and put it in a MySQL database using beautiful soup. Not only am I having trouble finding the correct table in the html, i can't figure out how to identify it in my soup code. The documentation has been less than helpful.
2017-08-22T13:39:50.000023
Bernita
pythondev_help_Bernita_2017-08-22T13:39:50.000023
1,503,409,190.000023
90,512
pythondev
help
I've never used a web scraper before, and I'm pretty lost
2017-08-22T13:42:15.000302
Bernita
pythondev_help_Bernita_2017-08-22T13:42:15.000302
1,503,409,335.000302
90,513
pythondev
help
<@Bernita> What does your current code look like?
2017-08-22T13:42:23.000586
Deedee
pythondev_help_Deedee_2017-08-22T13:42:23.000586
1,503,409,343.000586
90,514
pythondev
help
yeah, you're going to have some issues with that
2017-08-22T13:44:11.000239
Meg
pythondev_help_Meg_2017-08-22T13:44:11.000239
1,503,409,451.000239
90,515
pythondev
help
take a look at the networks tab in your browser tools
2017-08-22T13:44:20.000309
Meg
pythondev_help_Meg_2017-08-22T13:44:20.000309
1,503,409,460.000309
90,516
pythondev
help
for example
2017-08-22T13:45:09.000482
Meg
pythondev_help_Meg_2017-08-22T13:45:09.000482
1,503,409,509.000482
90,517
pythondev
help
<http://www.fangraphs.com/extfghtml.aspx?fgtype=30>
2017-08-22T13:45:09.000699
Meg
pythondev_help_Meg_2017-08-22T13:45:09.000699
1,503,409,509.000699
90,518
pythondev
help
all that information is populated dynamically
2017-08-22T13:45:27.000608
Meg
pythondev_help_Meg_2017-08-22T13:45:27.000608
1,503,409,527.000608
90,519
pythondev
help
so, what you'd need is a headless browser
2017-08-22T13:47:01.000484
Meg
pythondev_help_Meg_2017-08-22T13:47:01.000484
1,503,409,621.000484
90,520
pythondev
help
load the web page in the headless browser, wait for it to finish
2017-08-22T13:47:14.000080
Meg
pythondev_help_Meg_2017-08-22T13:47:14.000080
1,503,409,634.00008
90,521
pythondev
help
I'm trying to set it up so that I can run it every morning and refill my db then run my rankings algorithm
2017-08-22T13:47:30.000397
Bernita
pythondev_help_Bernita_2017-08-22T13:47:30.000397
1,503,409,650.000397
90,522
pythondev
help
then extract the html from the browser, toss it in BS and extract what you need
2017-08-22T13:47:33.000420
Meg
pythondev_help_Meg_2017-08-22T13:47:33.000420
1,503,409,653.00042
90,523
pythondev
help
sorry...headless browser?
2017-08-22T13:48:10.000280
Bernita
pythondev_help_Bernita_2017-08-22T13:48:10.000280
1,503,409,690.00028
90,524
pythondev
help
run the browser without a gui
2017-08-22T13:48:29.000058
Meg
pythondev_help_Meg_2017-08-22T13:48:29.000058
1,503,409,709.000058
90,525
pythondev
help
so you load the web page as it would normally
2017-08-22T13:48:35.000409
Meg
pythondev_help_Meg_2017-08-22T13:48:35.000409
1,503,409,715.000409
90,526
pythondev
help
so, waht happens with that site you want to scrape is that the data is all loaded asynchronously
2017-08-22T13:48:52.000046
Meg
pythondev_help_Meg_2017-08-22T13:48:52.000046
1,503,409,732.000046
90,527
pythondev
help
so, requests and beautifulsoup won't do
2017-08-22T13:49:02.000539
Meg
pythondev_help_Meg_2017-08-22T13:49:02.000539
1,503,409,742.000539
90,528
pythondev
help
you need to have a browser instance running to load the content, render it as you'd expect
2017-08-22T13:49:23.000395
Meg
pythondev_help_Meg_2017-08-22T13:49:23.000395
1,503,409,763.000395
90,529
pythondev
help
ouch...can u send me a link that describes what im trying to do?
2017-08-22T13:49:53.000097
Bernita
pythondev_help_Bernita_2017-08-22T13:49:53.000097
1,503,409,793.000097
90,530
pythondev
help
well, you can google it yourself and find a number of resources.
2017-08-22T13:50:45.000344
Meg
pythondev_help_Meg_2017-08-22T13:50:45.000344
1,503,409,845.000344
90,531
pythondev
help
but the gist of it is like googlebot crawling websites for indexing
2017-08-22T13:50:57.000493
Meg
pythondev_help_Meg_2017-08-22T13:50:57.000493
1,503,409,857.000493
90,532
pythondev
help
<https://developers.google.com/web/updates/2017/04/headless-chrome>
2017-08-22T13:51:09.000344
Meg
pythondev_help_Meg_2017-08-22T13:51:09.000344
1,503,409,869.000344
90,533
pythondev
help
ok cool...thanks
2017-08-22T13:51:13.000097
Bernita
pythondev_help_Bernita_2017-08-22T13:51:13.000097
1,503,409,873.000097
90,534
pythondev
help
back to the drawing board lol
2017-08-22T13:51:41.000054
Bernita
pythondev_help_Bernita_2017-08-22T13:51:41.000054
1,503,409,901.000054
90,535
pythondev
help
or check if that site has an api you can use
2017-08-22T13:51:55.000287
Meg
pythondev_help_Meg_2017-08-22T13:51:55.000287
1,503,409,915.000287
90,536
pythondev
help
FYI, there's <#C5PHT9EGK|webscraping> channel here
2017-08-22T13:52:10.000208
Meg
pythondev_help_Meg_2017-08-22T13:52:10.000208
1,503,409,930.000208
90,537
pythondev
help
you're a g...appreciate it
2017-08-22T13:54:20.000244
Bernita
pythondev_help_Bernita_2017-08-22T13:54:20.000244
1,503,410,060.000244
90,538
pythondev
help
iinteresting, the TOS on that site doesn't say anything about not using the data
2017-08-22T13:55:55.000448
Meg
pythondev_help_Meg_2017-08-22T13:55:55.000448
1,503,410,155.000448
90,539
pythondev
help
just this &gt;ANY MATERIAL DOWNLOADED OR OTHERWISE OBTAINED THROUGH THE USE OF THE SERVICE IS DONE AT YOUR OWN DISCRETION AND RISK AND THAT YOU WILL BE SOLELY RESPONSIBLE FOR ANY DAMAGE TO YOUR COMPUTER SYSTEM OR LOSS OF DATA THAT RESULTS FROM THE DOWNLOAD OF ANY SUCH MATERIAL.
2017-08-22T13:56:06.000134
Meg
pythondev_help_Meg_2017-08-22T13:56:06.000134
1,503,410,166.000134
90,540
pythondev
help
usually with sites like those, there are stricter usage conditions
2017-08-22T13:56:41.000090
Meg
pythondev_help_Meg_2017-08-22T13:56:41.000090
1,503,410,201.00009
90,541
pythondev
help
I was once in a similar situation, I used Selenium to open a webpage, dumbed its content into a file and parsed what I needed. If you use webdriver you don't even need to use a headless browser.
2017-08-22T14:06:37.000371
Ramona
pythondev_help_Ramona_2017-08-22T14:06:37.000371
1,503,410,797.000371
90,542
pythondev
help
actually, you do
2017-08-22T14:08:06.000376
Meg
pythondev_help_Meg_2017-08-22T14:08:06.000376
1,503,410,886.000376
90,543
pythondev
help
because selenium needs something to actually render the page
2017-08-22T14:08:16.000589
Meg
pythondev_help_Meg_2017-08-22T14:08:16.000589
1,503,410,896.000589
90,544
pythondev
help
typically, chromedriver, phantomdriver, etc
2017-08-22T14:08:29.000203
Meg
pythondev_help_Meg_2017-08-22T14:08:29.000203
1,503,410,909.000203
90,545
pythondev
help
You're right about that, when I said you don't need a headless browser, I meant you can just use your regular browser
2017-08-22T14:08:42.000301
Ramona
pythondev_help_Ramona_2017-08-22T14:08:42.000301
1,503,410,922.000301
90,546
pythondev
help
ah, ok :slightly_smiling_face:
2017-08-22T14:08:48.000383
Meg
pythondev_help_Meg_2017-08-22T14:08:48.000383
1,503,410,928.000383
90,547
pythondev
help
yup, true
2017-08-22T14:08:56.000621
Meg
pythondev_help_Meg_2017-08-22T14:08:56.000621
1,503,410,936.000621
90,548
pythondev
help
but that's also more time-consuming, and not quite what I think <@Bernita> wants in this case
2017-08-22T14:09:16.000163
Meg
pythondev_help_Meg_2017-08-22T14:09:16.000163
1,503,410,956.000163
90,549
pythondev
help
I never used the headless chrome, but it looks like it's already capable of creating a simple dump without any other tools! That's actually pretty cool
2017-08-22T14:10:40.000259
Ramona
pythondev_help_Ramona_2017-08-22T14:10:40.000259
1,503,411,040.000259
90,550
pythondev
help
yep. Originally, you had to go through quite a few steps to do it, and so phantom was usually the option of choice
2017-08-22T14:11:37.000407
Meg
pythondev_help_Meg_2017-08-22T14:11:37.000407
1,503,411,097.000407
90,551
pythondev
help
but now that google's made headless chrome much easier to use in testing, usage rates are going up
2017-08-22T14:12:04.000526
Meg
pythondev_help_Meg_2017-08-22T14:12:04.000526
1,503,411,124.000526
90,552
pythondev
help
which makes sense
2017-08-22T14:12:30.000062
Meg
pythondev_help_Meg_2017-08-22T14:12:30.000062
1,503,411,150.000062
90,553
pythondev
help
<http://kangax.github.io/compat-table/es2016plus/>
2017-08-22T14:12:30.000554
Meg
pythondev_help_Meg_2017-08-22T14:12:30.000554
1,503,411,150.000554
90,554
pythondev
help
take alook at the server/runtime part
2017-08-22T14:12:36.000344
Meg
pythondev_help_Meg_2017-08-22T14:12:36.000344
1,503,411,156.000344
90,555
pythondev
help
PJS is PhantomJS, and its pretty incompatible with ES6
2017-08-22T14:12:50.000598
Meg
pythondev_help_Meg_2017-08-22T14:12:50.000598
1,503,411,170.000598
90,556
pythondev
help
Since when does it exist? I remember looking for a headless browser last year, but couldn't find anything useful except for phantomjs
2017-08-22T14:12:57.000368
Ramona
pythondev_help_Ramona_2017-08-22T14:12:57.000368
1,503,411,177.000368
90,557
pythondev
help
but given that there was only one dev/maintainer, even getting to the feature level it did is a great accomplishment
2017-08-22T14:13:24.000407
Meg
pythondev_help_Meg_2017-08-22T14:13:24.000407
1,503,411,204.000407
90,558
pythondev
help
<https://developers.google.com/web/updates/2017/04/headless-chrome>
2017-08-22T14:13:32.000084
Meg
pythondev_help_Meg_2017-08-22T14:13:32.000084
1,503,411,212.000084
90,559
pythondev
help
its available on linux and osx as of chrome 59, windows as of chrome 60
2017-08-22T14:13:57.000323
Meg
pythondev_help_Meg_2017-08-22T14:13:57.000323
1,503,411,237.000323
90,560
pythondev
help
Pretty cool, have to remember that
2017-08-22T14:14:16.000061
Ramona
pythondev_help_Ramona_2017-08-22T14:14:16.000061
1,503,411,256.000061
90,561
pythondev
help
Yes. And I'm not sure why they haven't improved it yet.
2017-08-22T14:56:45.000422
Star
pythondev_help_Star_2017-08-22T14:56:45.000422
1,503,413,805.000422
90,562
pythondev
help
is there a way to package my current version of python3 and also all the packages i downloaded in my virtualenv into 1 file so then I SCP my whole project to another machine?
2017-08-22T15:47:59.000228
Sharika
pythondev_help_Sharika_2017-08-22T15:47:59.000228
1,503,416,879.000228
90,563
pythondev
help
you can do a recursive scp and move the folder with all the contents
2017-08-22T15:49:13.000259
Johana
pythondev_help_Johana_2017-08-22T15:49:13.000259
1,503,416,953.000259
90,564
pythondev
help
<@Sharika> assuming the same architecture and system deps, you could probably just tarball up the project dir... but that's a bit odd - may be best to use Docker, install them fresh, or maybe pyinstaller
2017-08-22T15:49:26.000102
Beula
pythondev_help_Beula_2017-08-22T15:49:26.000102
1,503,416,966.000102
90,565
pythondev
help
o wait n/m you want the virtualenv too.
2017-08-22T15:49:31.000148
Johana
pythondev_help_Johana_2017-08-22T15:49:31.000148
1,503,416,971.000148
90,566
pythondev
help
Hey
2017-08-22T16:23:39.000130
Maida
pythondev_help_Maida_2017-08-22T16:23:39.000130
1,503,419,019.00013
90,567
pythondev
help
are there any jinja template language masters
2017-08-22T16:23:48.000299
Maida
pythondev_help_Maida_2017-08-22T16:23:48.000299
1,503,419,028.000299
90,568
pythondev
help
I have passed a key into the template {{course.id}} I need some way of accessing that key in dict {{course_completion_percentages}}. I wanted to try ```{{ course_completion_percentages.{{course.id}} }}```, but that's invalid. {{course_completion_percentages.2}} gives me the value I want (by explicitly passing the information).
2017-08-22T16:25:06.000371
Maida
pythondev_help_Maida_2017-08-22T16:25:06.000371
1,503,419,106.000371
90,569
pythondev
help
Not sure how to best deal with this
2017-08-22T16:25:12.000444
Maida
pythondev_help_Maida_2017-08-22T16:25:12.000444
1,503,419,112.000444
90,570
pythondev
help
`course_completion_percentages[course.id]` ?
2017-08-22T16:26:14.000376
Ciera
pythondev_help_Ciera_2017-08-22T16:26:14.000376
1,503,419,174.000376
90,571
pythondev
help
Unfortunately it cant parse that
2017-08-22T16:27:50.000652
Maida
pythondev_help_Maida_2017-08-22T16:27:50.000652
1,503,419,270.000652
90,572
pythondev
help
```{{ course_completion_percentages[course.id] }} ``` nor ```{{ course_completion_percentages.[course.id] }}```
2017-08-22T16:28:16.000138
Maida
pythondev_help_Maida_2017-08-22T16:28:16.000138
1,503,419,296.000138
90,573
pythondev
help
what type is `course_completion_percentages`?
2017-08-22T16:28:34.000058
Suellen
pythondev_help_Suellen_2017-08-22T16:28:34.000058
1,503,419,314.000058
90,574
pythondev
help
dict
2017-08-22T16:28:43.000057
Maida
pythondev_help_Maida_2017-08-22T16:28:43.000057
1,503,419,323.000057
90,575
pythondev
help
do you get an error ?
2017-08-22T16:28:49.000574
Ciera
pythondev_help_Ciera_2017-08-22T16:28:49.000574
1,503,419,329.000574
90,576
pythondev
help
yep
2017-08-22T16:28:55.000099
Maida
pythondev_help_Maida_2017-08-22T16:28:55.000099
1,503,419,335.000099
90,577
pythondev
help
```Could not parse the remainder: '[course.id]' from 'course_completion_percentages[course.id]'```
2017-08-22T16:29:09.000278
Maida
pythondev_help_Maida_2017-08-22T16:29:09.000278
1,503,419,349.000278
90,578
pythondev
help
Online claims `dict.get(val.id)` may work
2017-08-22T16:29:27.000596
Beula
pythondev_help_Beula_2017-08-22T16:29:27.000596
1,503,419,367.000596
90,579
pythondev
help
I can do the explicit declaration {{course_completion_percentages.2}} but that's not what I want
2017-08-22T16:29:29.000024
Maida
pythondev_help_Maida_2017-08-22T16:29:29.000024
1,503,419,369.000024
90,580
pythondev
help
oh lordy
2017-08-22T16:29:36.000389
Maida
pythondev_help_Maida_2017-08-22T16:29:36.000389
1,503,419,376.000389
90,581
pythondev
help
Are you sure you're on jinja2? The `foo[bar]` should work from everything I see
2017-08-22T16:30:09.000277
Beula
pythondev_help_Beula_2017-08-22T16:30:09.000277
1,503,419,409.000277
90,582
pythondev
help
I did it
2017-08-22T16:30:25.000267
Maida
pythondev_help_Maida_2017-08-22T16:30:25.000267
1,503,419,425.000267
90,583
pythondev
help
```{{ course_completion_percentages.get }}{{course.id}}```
2017-08-22T16:30:28.000144
Maida
pythondev_help_Maida_2017-08-22T16:30:28.000144
1,503,419,428.000144
90,584
pythondev
help
lmao
2017-08-22T16:30:30.000400
Maida
pythondev_help_Maida_2017-08-22T16:30:30.000400
1,503,419,430.0004
90,585
pythondev
help
weird
2017-08-22T16:30:33.000064
Beula
pythondev_help_Beula_2017-08-22T16:30:33.000064
1,503,419,433.000064
90,586
pythondev
help
im on the most recent django
2017-08-22T16:30:50.000200
Maida
pythondev_help_Maida_2017-08-22T16:30:50.000200
1,503,419,450.0002
90,587
pythondev
help
so im with whatever bundled with that
2017-08-22T16:30:54.000267
Maida
pythondev_help_Maida_2017-08-22T16:30:54.000267
1,503,419,454.000267
90,588
pythondev
help
that's the django templating language
2017-08-22T16:31:02.000171
Beula
pythondev_help_Beula_2017-08-22T16:31:02.000171
1,503,419,462.000171
90,589
pythondev
help
ohh
2017-08-22T16:31:10.000227
Maida
pythondev_help_Maida_2017-08-22T16:31:10.000227
1,503,419,470.000227
90,590
pythondev
help
it looks like jinja2, but slightly less powerful
2017-08-22T16:31:12.000212
Beula
pythondev_help_Beula_2017-08-22T16:31:12.000212
1,503,419,472.000212
90,591
pythondev
help
well i think we should sticky this find then
2017-08-22T16:31:25.000599
Maida
pythondev_help_Maida_2017-08-22T16:31:25.000599
1,503,419,485.000599
90,592
pythondev
help
:stuck_out_tongue:
2017-08-22T16:31:26.000424
Maida
pythondev_help_Maida_2017-08-22T16:31:26.000424
1,503,419,486.000424
90,593
pythondev
help
this is gonna be some atlantis tier information
2017-08-22T16:31:38.000310
Maida
pythondev_help_Maida_2017-08-22T16:31:38.000310
1,503,419,498.00031
90,594
pythondev
help
A number of people recommend a custom tag <https://stackoverflow.com/questions/8000022/django-template-how-to-look-up-a-dictionary-value-with-a-variable>
2017-08-22T16:31:56.000146
Beula
pythondev_help_Beula_2017-08-22T16:31:56.000146
1,503,419,516.000146
90,595
pythondev
help
This is new to me, pycharm created a virtual environment but then it lacked pip and setuptools.
2017-08-22T16:32:26.000295
Meghan
pythondev_help_Meghan_2017-08-22T16:32:26.000295
1,503,419,546.000295
90,596
pythondev
help
Creating another one, so this isn't a question, yet.
2017-08-22T16:32:39.000271
Meghan
pythondev_help_Meghan_2017-08-22T16:32:39.000271
1,503,419,559.000271
90,597
pythondev
help
which python version ?
2017-08-22T16:32:58.000237
Ciera
pythondev_help_Ciera_2017-08-22T16:32:58.000237
1,503,419,578.000237
90,598
pythondev
help
3.6.0
2017-08-22T16:33:03.000658
Meghan
pythondev_help_Meghan_2017-08-22T16:33:03.000658
1,503,419,583.000658
90,599
pythondev
help
hmm weird
2017-08-22T16:33:16.000021
Ciera
pythondev_help_Ciera_2017-08-22T16:33:16.000021
1,503,419,596.000021
90,600
pythondev
help
yeah ive had that happen
2017-08-22T16:33:19.000402
Maida
pythondev_help_Maida_2017-08-22T16:33:19.000402
1,503,419,599.000402
90,601
pythondev
help
you need to
2017-08-22T16:33:25.000652
Maida
pythondev_help_Maida_2017-08-22T16:33:25.000652
1,503,419,605.000652
90,602