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
<@Karen> in your first test, your test shouldnt be start multi-process then
2019-02-21T07:28:04.084200
Shirly
pythondev_help_Shirly_2019-02-21T07:28:04.084200
1,550,734,084.0842
9,721
pythondev
help
In your teardown, how you close driver ? With browser.quit() or something else
2019-02-21T07:28:53.085200
Shirly
pythondev_help_Shirly_2019-02-21T07:28:53.085200
1,550,734,133.0852
9,722
pythondev
help
driver.quit
2019-02-21T07:29:06.085400
Karen
pythondev_help_Karen_2019-02-21T07:29:06.085400
1,550,734,146.0854
9,723
pythondev
help
I dont open this again i just run the code above once and i get a lot of processes in htop
2019-02-21T07:29:32.086100
Karen
pythondev_help_Karen_2019-02-21T07:29:32.086100
1,550,734,172.0861
9,724
pythondev
help
of chrome driver
2019-02-21T07:29:36.086300
Karen
pythondev_help_Karen_2019-02-21T07:29:36.086300
1,550,734,176.0863
9,725
pythondev
help
Maybe you can analyse this : <https://stackoverflow.com/questions/41744376/multiple-chrome-processes-after-chromedriver-quit>
2019-02-21T07:30:02.086700
Shirly
pythondev_help_Shirly_2019-02-21T07:30:02.086700
1,550,734,202.0867
9,726
pythondev
help
after quit
2019-02-21T07:31:34.087100
Karen
pythondev_help_Karen_2019-02-21T07:31:34.087100
1,550,734,294.0871
9,727
pythondev
help
processes dont stay man
2019-02-21T07:31:37.087300
Karen
pythondev_help_Karen_2019-02-21T07:31:37.087300
1,550,734,297.0873
9,728
pythondev
help
they are while the script is running
2019-02-21T07:31:45.087600
Karen
pythondev_help_Karen_2019-02-21T07:31:45.087600
1,550,734,305.0876
9,729
pythondev
help
i dont have leftovers
2019-02-21T07:31:49.087800
Karen
pythondev_help_Karen_2019-02-21T07:31:49.087800
1,550,734,309.0878
9,730
pythondev
help
i just use way too many resources
2019-02-21T07:31:59.088100
Karen
pythondev_help_Karen_2019-02-21T07:31:59.088100
1,550,734,319.0881
9,731
pythondev
help
like for 10 browsers it take over 16gb ram
2019-02-21T07:32:11.088500
Karen
pythondev_help_Karen_2019-02-21T07:32:11.088500
1,550,734,331.0885
9,732
pythondev
help
which is insane
2019-02-21T07:32:14.088700
Karen
pythondev_help_Karen_2019-02-21T07:32:14.088700
1,550,734,334.0887
9,733
pythondev
help
you can rent a server on AWS with like 128GB of RAM
2019-02-21T07:38:30.089300
Jettie
pythondev_help_Jettie_2019-02-21T07:38:30.089300
1,550,734,710.0893
9,734
pythondev
help
for pretty cheap
2019-02-21T07:38:32.089500
Jettie
pythondev_help_Jettie_2019-02-21T07:38:32.089500
1,550,734,712.0895
9,735
pythondev
help
we have like machines with 2T ram but thats not the question
2019-02-21T07:39:11.090000
Karen
pythondev_help_Karen_2019-02-21T07:39:11.090000
1,550,734,751.09
9,736
pythondev
help
The idea is to optimize the code
2019-02-21T07:39:26.090400
Karen
pythondev_help_Karen_2019-02-21T07:39:26.090400
1,550,734,766.0904
9,737
pythondev
help
not buy more hardware
2019-02-21T07:39:29.090600
Karen
pythondev_help_Karen_2019-02-21T07:39:29.090600
1,550,734,769.0906
9,738
pythondev
help
I don't think you could optimize anything there, it's a pretty small snippet of code
2019-02-21T07:42:59.091300
Jettie
pythondev_help_Jettie_2019-02-21T07:42:59.091300
1,550,734,979.0913
9,739
pythondev
help
can you just run fewer browser sessions concurrently?
2019-02-21T07:42:59.091400
Karoline
pythondev_help_Karoline_2019-02-21T07:42:59.091400
1,550,734,979.0914
9,740
pythondev
help
<@Karoline> i can im looking for a way to minimize the ram taken by browser somehow
2019-02-21T07:44:23.091900
Karen
pythondev_help_Karen_2019-02-21T07:44:23.091900
1,550,735,063.0919
9,741
pythondev
help
if you just use one browser, to execute a single get on <http://example.com|example.com> as you did above, what's the usage?
2019-02-21T07:45:01.092600
Karoline
pythondev_help_Karoline_2019-02-21T07:45:01.092600
1,550,735,101.0926
9,742
pythondev
help
<https://news.ycombinator.com/item?id=14103503>
2019-02-21T07:45:49.092800
Hiroko
pythondev_help_Hiroko_2019-02-21T07:45:49.092800
1,550,735,149.0928
9,743
pythondev
help
&gt;&gt;&gt;for months (rendering a large variety of sites without restarts for weeks at a time) Run it with: ` --js-flags="--max_old_space_size=500"` to force the VM to keep it GC’d below 500 Chrome v55 was a 30% memory savings, before that I used 1GB containers. It’s not perfect, but I am definitely pushing high volume (multiple tabs, concurrent activity) and I am not having any significant stability issues and I am pushing diverse sets of webpages.
2019-02-21T07:46:36.093000
Hiroko
pythondev_help_Hiroko_2019-02-21T07:46:36.093000
1,550,735,196.093
9,744
pythondev
help
check out how to start chrome with vm and memory settings
2019-02-21T07:47:29.093600
Hiroko
pythondev_help_Hiroko_2019-02-21T07:47:29.093600
1,550,735,249.0936
9,745
pythondev
help
for what it's worth I use chrome headless through selenium (which I believe in the end is bottoming out in the same thing? I always forget) and have never had a large issue with memory usage
2019-02-21T07:48:34.094400
Karoline
pythondev_help_Karoline_2019-02-21T07:48:34.094400
1,550,735,314.0944
9,746
pythondev
help
are you doing multiple instances, though?
2019-02-21T07:49:34.094900
Hiroko
pythondev_help_Hiroko_2019-02-21T07:49:34.094900
1,550,735,374.0949
9,747
pythondev
help
depending on what <@Karen> is doing, I could very well see each chrome instance taking up a gig and a half of ram
2019-02-21T07:49:58.095600
Hiroko
pythondev_help_Hiroko_2019-02-21T07:49:58.095600
1,550,735,398.0956
9,748
pythondev
help
no we did fetches in serial but the instance size of the VM was quite small
2019-02-21T07:50:58.096500
Karoline
pythondev_help_Karoline_2019-02-21T07:50:58.096500
1,550,735,458.0965
9,749
pythondev
help
I think it was 1.7GB for the whole instance
2019-02-21T07:51:15.096800
Karoline
pythondev_help_Karoline_2019-02-21T07:51:15.096800
1,550,735,475.0968
9,750
pythondev
help
I'd have to check my notes though. We'd occasionally see a site run up against memory constraints but it was pretty rare. I suppose it depends on what he's crawling though
2019-02-21T07:51:57.097600
Karoline
pythondev_help_Karoline_2019-02-21T07:51:57.097600
1,550,735,517.0976
9,751
pythondev
help
how heavy were the JS in the sites you were using?
2019-02-21T07:52:42.097900
Hiroko
pythondev_help_Hiroko_2019-02-21T07:52:42.097900
1,550,735,562.0979
9,752
pythondev
help
it's hard to say we rarely really looked at the actual sites themselves
2019-02-21T07:53:03.098300
Karoline
pythondev_help_Karoline_2019-02-21T07:53:03.098300
1,550,735,583.0983
9,753
pythondev
help
basically it was just crawling everything on a domain and feeding it into a binary classifier so we could find the pages we were interested in, and then feeding the results down a pipeline for data extraction off of the interesting pages
2019-02-21T07:54:22.099100
Karoline
pythondev_help_Karoline_2019-02-21T07:54:22.099100
1,550,735,662.0991
9,754
pythondev
help
so the crawler itself was pretty dumb
2019-02-21T07:54:29.099400
Karoline
pythondev_help_Karoline_2019-02-21T07:54:29.099400
1,550,735,669.0994
9,755
pythondev
help
hmm, alright. I’ve done some work with headless browsers before, but that was just generating screenshots of static pages
2019-02-21T07:55:46.100000
Hiroko
pythondev_help_Hiroko_2019-02-21T07:55:46.100000
1,550,735,746.1
9,756
pythondev
help
this was with phantomjs, about five months or so before headless chrome came out and pjs was abandoned
2019-02-21T07:56:22.100600
Hiroko
pythondev_help_Hiroko_2019-02-21T07:56:22.100600
1,550,735,782.1006
9,757
pythondev
help
well im downloading captchas and shit like that
2019-02-21T07:57:41.101200
Karen
pythondev_help_Karen_2019-02-21T07:57:41.101200
1,550,735,861.1012
9,758
pythondev
help
my suspicion though now that I think about it is that they weren't *too* heavy on JS. we used headless chrome so that we'd load them as true to a user's browser as possible
2019-02-21T07:57:55.102000
Karoline
pythondev_help_Karoline_2019-02-21T07:57:55.102000
1,550,735,875.102
9,759
pythondev
help
loading captchas and whatnot ... so
2019-02-21T07:57:59.102200
Karen
pythondev_help_Karen_2019-02-21T07:57:59.102200
1,550,735,879.1022
9,760
pythondev
help
but these were real estate sites, so in the end they're all hoping to get crawled by google so they couldn't have been *that* crazy
2019-02-21T07:58:13.102500
Karoline
pythondev_help_Karoline_2019-02-21T07:58:13.102500
1,550,735,893.1025
9,761
pythondev
help
<@Karen> hopefully the wall of text of my digression didn't push it up too far, but make sure you notice <@Hiroko>'s suggestion
2019-02-21T07:59:26.103200
Karoline
pythondev_help_Karoline_2019-02-21T07:59:26.103200
1,550,735,966.1032
9,762
pythondev
help
None
2019-02-21T07:59:36.103300
Karoline
pythondev_help_Karoline_2019-02-21T07:59:36.103300
1,550,735,976.1033
9,763
pythondev
help
will try
2019-02-21T07:59:48.103500
Karen
pythondev_help_Karen_2019-02-21T07:59:48.103500
1,550,735,988.1035
9,764
pythondev
help
you should feed him tacos too, because that was a good find. <@Hiroko> :taco:
2019-02-21T08:00:10.103900
Karoline
pythondev_help_Karoline_2019-02-21T08:00:10.103900
1,550,736,010.1039
9,765
pythondev
help
loading captchas and shit, eh?
2019-02-21T08:02:36.104200
Hiroko
pythondev_help_Hiroko_2019-02-21T08:02:36.104200
1,550,736,156.1042
9,766
pythondev
help
is what you are doing entirely legal, <@Karen>?
2019-02-21T08:02:50.104600
Hiroko
pythondev_help_Hiroko_2019-02-21T08:02:50.104600
1,550,736,170.1046
9,767
pythondev
help
<@Hiroko> is loading captcha illegal?
2019-02-21T08:03:55.105300
Karen
pythondev_help_Karen_2019-02-21T08:03:55.105300
1,550,736,235.1053
9,768
pythondev
help
loading, no. but trying to bypass them is grey-area
2019-02-21T08:04:17.105700
Hiroko
pythondev_help_Hiroko_2019-02-21T08:04:17.105700
1,550,736,257.1057
9,769
pythondev
help
<@Jacki> please avoid crossposting immediately
2019-02-21T08:14:48.106800
Hiroko
pythondev_help_Hiroko_2019-02-21T08:14:48.106800
1,550,736,888.1068
9,770
pythondev
help
:slightly_smiling_face:
2019-02-21T08:14:50.107100
Hiroko
pythondev_help_Hiroko_2019-02-21T08:14:50.107100
1,550,736,890.1071
9,771
pythondev
help
if no answers come up after a period of time, say, an hour, then feel free to post to other channels
2019-02-21T08:15:12.107700
Hiroko
pythondev_help_Hiroko_2019-02-21T08:15:12.107700
1,550,736,912.1077
9,772
pythondev
help
<@Hiroko> lets say i'm not doing anything illegal but maybe some sites won't be happy about my crawler :slightly_smiling_face:
2019-02-21T08:19:12.108600
Karen
pythondev_help_Karen_2019-02-21T08:19:12.108600
1,550,737,152.1086
9,773
pythondev
help
Do you really need a full browser for that?
2019-02-21T08:19:51.109300
Jonas
pythondev_help_Jonas_2019-02-21T08:19:51.109300
1,550,737,191.1093
9,774
pythondev
help
We're not here to provide help violating the terms of a site.
2019-02-21T08:20:03.109900
Karoline
pythondev_help_Karoline_2019-02-21T08:20:03.109900
1,550,737,203.1099
9,775
pythondev
help
If you're beating simple captchas requests will do fine
2019-02-21T08:20:14.110300
Jonas
pythondev_help_Jonas_2019-02-21T08:20:14.110300
1,550,737,214.1103
9,776
pythondev
help
Hello guys, I'm developing a API REST With Flask + MONGODB, however I am getting error http 500 when trying execute any other method than GET
2019-02-21T08:20:48.111000
Jolanda
pythondev_help_Jolanda_2019-02-21T08:20:48.111000
1,550,737,248.111
9,777
pythondev
help
Knowing how to ask a good question is a highly invaluable skill that will benefit you greatly in any career. Two good resources for suggestions and strategies to help you structure and phrase your question to make it easier for those here to understand your problem and help you work to a solution are: • <https://www.mikeash.com/getting_answers.html> • <https://stackoverflow.com/help/how-to-ask>
2019-02-21T08:20:59.111300
Leana
pythondev_help_Leana_2019-02-21T08:20:59.111300
1,550,737,259.1113
9,778
pythondev
help
None
2019-02-21T08:21:01.111500
Jolanda
pythondev_help_Jolanda_2019-02-21T08:21:01.111500
1,550,737,261.1115
9,779
pythondev
help
yeah uhh don't do any of that <@Jolanda>
2019-02-21T08:21:17.112300
Jonas
pythondev_help_Jonas_2019-02-21T08:21:17.112300
1,550,737,277.1123
9,780
pythondev
help
im not beating the captchas im just downloading them :slightly_smiling_face: trying to learn some AI to recognize them
2019-02-21T08:21:20.112400
Karen
pythondev_help_Karen_2019-02-21T08:21:20.112400
1,550,737,280.1124
9,781
pythondev
help
Some types of captchas cant be downloaded :disappointed:
2019-02-21T08:21:30.112800
Karen
pythondev_help_Karen_2019-02-21T08:21:30.112800
1,550,737,290.1128
9,782
pythondev
help
Why on earth are you taking the JSON body, dumping it to a string then running literal_eval over it?
2019-02-21T08:21:48.113600
Jonas
pythondev_help_Jonas_2019-02-21T08:21:48.113600
1,550,737,308.1136
9,783
pythondev
help
man when did we get that party parrot?
2019-02-21T08:22:24.114100
Karoline
pythondev_help_Karoline_2019-02-21T08:22:24.114100
1,550,737,344.1141
9,784
pythondev
help
I just follwed a tutorial:sweat_smile:
2019-02-21T08:22:54.114800
Jolanda
pythondev_help_Jolanda_2019-02-21T08:22:54.114800
1,550,737,374.1148
9,785
pythondev
help
Which tutorial was that? Please give a link!
2019-02-21T08:23:05.115100
Jonas
pythondev_help_Jonas_2019-02-21T08:23:05.115100
1,550,737,385.1151
9,786
pythondev
help
In regards to your question, in general you need to give more information than "it does not work"
2019-02-21T08:23:22.115500
Jonas
pythondev_help_Jonas_2019-02-21T08:23:22.115500
1,550,737,402.1155
9,787
pythondev
help
I would immediately not use any tutorial that has put you towards writing that
2019-02-21T08:23:36.116000
Jonas
pythondev_help_Jonas_2019-02-21T08:23:36.116000
1,550,737,416.116
9,788
pythondev
help
<https://www.moesif.com/blog/technical/restful/Guide-to-Creating-RESTful-APIs-using-Python-Flask-and-MongoDB/#>
2019-02-21T08:23:46.116400
Jolanda
pythondev_help_Jolanda_2019-02-21T08:23:46.116400
1,550,737,426.1164
9,789
pythondev
help
On line 15 you have a `try/except`
2019-02-21T08:23:50.116600
Jonas
pythondev_help_Jonas_2019-02-21T08:23:50.116600
1,550,737,430.1166
9,790
pythondev
help
try removing this block entirely, and see what the error is
2019-02-21T08:23:59.116900
Jonas
pythondev_help_Jonas_2019-02-21T08:23:59.116900
1,550,737,439.1169
9,791
pythondev
help
holy shit
2019-02-21T08:24:10.117200
Jonas
pythondev_help_Jonas_2019-02-21T08:24:10.117200
1,550,737,450.1172
9,792
pythondev
help
<@Jolanda>: <https://flask-restful.readthedocs.io/en/latest/quickstart.html>. Please don't use that tutorial
2019-02-21T08:25:32.117700
Jonas
pythondev_help_Jonas_2019-02-21T08:25:32.117700
1,550,737,532.1177
9,793
pythondev
help
Thanks <@Jonas>, I am going to start again with quickstart, my fault not follow the oficial documentation
2019-02-21T08:27:11.118600
Jolanda
pythondev_help_Jolanda_2019-02-21T08:27:11.118600
1,550,737,631.1186
9,794
pythondev
help
flask-restful is a 3rd party package, but if you're building a REST api it's pretty good. Also, avoid mongodb IMO
2019-02-21T08:27:37.119100
Jonas
pythondev_help_Jonas_2019-02-21T08:27:37.119100
1,550,737,657.1191
9,795
pythondev
help
yeah, don’t use that tutorial
2019-02-21T08:30:33.119400
Hiroko
pythondev_help_Hiroko_2019-02-21T08:30:33.119400
1,550,737,833.1194
9,796
pythondev
help
and uhm, don’t hire that person if he’s continuing similar dev practices :grimacing:
2019-02-21T08:30:51.119800
Hiroko
pythondev_help_Hiroko_2019-02-21T08:30:51.119800
1,550,737,851.1198
9,797
pythondev
help
dang. that tutorial was updated july 24 last year, and nada about flask-restful?
2019-02-21T08:31:49.120300
Hiroko
pythondev_help_Hiroko_2019-02-21T08:31:49.120300
1,550,737,909.1203
9,798
pythondev
help
:shake-head:
2019-02-21T08:31:56.120500
Hiroko
pythondev_help_Hiroko_2019-02-21T08:31:56.120500
1,550,737,916.1205
9,799
pythondev
help
Maybe he was trying teaching how to build from scratch
2019-02-21T08:32:43.120900
Jolanda
pythondev_help_Jolanda_2019-02-21T08:32:43.120900
1,550,737,963.1209
9,800
pythondev
help
I dunno, I just can't find similar code in anywhere
2019-02-21T08:33:08.121300
Jolanda
pythondev_help_Jolanda_2019-02-21T08:33:08.121300
1,550,737,988.1213
9,801
pythondev
help
You're searching for the wrong things then :smile:
2019-02-21T08:35:46.121600
Jonas
pythondev_help_Jonas_2019-02-21T08:35:46.121600
1,550,738,146.1216
9,802
pythondev
help
even building it from scratch you wouldn't do it that way. That tutorial makes me angry, so much wrong.
2019-02-21T08:36:05.122000
Jonas
pythondev_help_Jonas_2019-02-21T08:36:05.122000
1,550,738,165.122
9,803
pythondev
help
python 2.7 on a tutorial updated in July? :angry:
2019-02-21T08:37:44.122400
Karoline
pythondev_help_Karoline_2019-02-21T08:37:44.122400
1,550,738,264.1224
9,804
pythondev
help
in essence, <@Jolanda> you’re finding yourself in one of the big issues with self-learning nowadays
2019-02-21T08:41:56.123100
Hiroko
pythondev_help_Hiroko_2019-02-21T08:41:56.123100
1,550,738,516.1231
9,805
pythondev
help
lots of material avaiable, but also hard to discriminate the good stuff from the stuff that really should be flushed down the toilet
2019-02-21T08:42:30.123800
Hiroko
pythondev_help_Hiroko_2019-02-21T08:42:30.123800
1,550,738,550.1238
9,806
pythondev
help
afaik there is a flask section at g#learning-resources
2019-02-21T08:43:01.124700
Jimmy
pythondev_help_Jimmy_2019-02-21T08:43:01.124700
1,550,738,581.1247
9,807
pythondev
help
<https://github.com/pyslackers/learning-resources>
2019-02-21T08:43:02.124900
Leana
pythondev_help_Leana_2019-02-21T08:43:02.124900
1,550,738,582.1249
9,808
pythondev
help
especially when you’re starting out and you don’t have the knowledge or expertise to understand what’s being described
2019-02-21T08:43:03.125100
Hiroko
pythondev_help_Hiroko_2019-02-21T08:43:03.125100
1,550,738,583.1251
9,809
pythondev
help
You're totally right <@Hiroko>
2019-02-21T08:43:45.125700
Jolanda
pythondev_help_Jolanda_2019-02-21T08:43:45.125700
1,550,738,625.1257
9,810
pythondev
help
that said, <@Jonas> has pointed you to a good resource, and feel free to post a link here asking if its a decent one to learn from
2019-02-21T08:44:12.126300
Hiroko
pythondev_help_Hiroko_2019-02-21T08:44:12.126300
1,550,738,652.1263
9,811
pythondev
help
also, regarding Flask, the github link above has some links you can use that we’ve checked out
2019-02-21T08:44:43.126800
Hiroko
pythondev_help_Hiroko_2019-02-21T08:44:43.126800
1,550,738,683.1268
9,812
pythondev
help
<@Jolanda> ye, the docs for Flask are solid as hell, Miguel does an incredible tutorial: <https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world>
2019-02-21T08:47:28.127800
Mica
pythondev_help_Mica_2019-02-21T08:47:28.127800
1,550,738,848.1278
9,813
pythondev
help
there's a lot there
2019-02-21T08:47:31.128100
Mica
pythondev_help_Mica_2019-02-21T08:47:31.128100
1,550,738,851.1281
9,814
pythondev
help
but it's really good to get a grasp with what to do
2019-02-21T08:47:42.128400
Mica
pythondev_help_Mica_2019-02-21T08:47:42.128400
1,550,738,862.1284
9,815
pythondev
help
I'd also recommend using flask_restful, I use it at work and it makes developing endpoints simple and clean
2019-02-21T08:48:03.129200
Mica
pythondev_help_Mica_2019-02-21T08:48:03.129200
1,550,738,883.1292
9,816
pythondev
help
brings back memories. I started with this after graduation
2019-02-21T08:48:09.129300
Conrad
pythondev_help_Conrad_2019-02-21T08:48:09.129300
1,550,738,889.1293
9,817
pythondev
help
ye, that was my entry to Flask too haha
2019-02-21T08:48:34.129800
Mica
pythondev_help_Mica_2019-02-21T08:48:34.129800
1,550,738,914.1298
9,818
pythondev
help
Thanks you guys, <@Jonas>, <@Hiroko> <@Tracie>, I will learning from the resources that you pointed, better that follow nosense tutorials :smile:
2019-02-21T08:50:09.131300
Jolanda
pythondev_help_Jolanda_2019-02-21T08:50:09.131300
1,550,739,009.1313
9,819
pythondev
help
how i can get mx record with python?
2019-02-21T08:50:25.131600
Karen
pythondev_help_Karen_2019-02-21T08:50:25.131600
1,550,739,025.1316
9,820