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 | You don't need to write an algorithm to detect requests. You just need to open the page, to look into web inspector and copy-paste related queries from "Network" tab | 2017-06-26T03:55:15.169701 | Collette | pythondev_help_Collette_2017-06-26T03:55:15.169701 | 1,498,449,315.169701 | 83,103 |
pythondev | help | That's pretty much it | 2017-06-26T03:55:19.170651 | Collette | pythondev_help_Collette_2017-06-26T03:55:19.170651 | 1,498,449,319.170651 | 83,104 |
pythondev | help | Because I have to find a way to deal with “Any” pages not for specific one as you suggest. | 2017-06-26T04:00:28.236368 | Mirna | pythondev_help_Mirna_2017-06-26T04:00:28.236368 | 1,498,449,628.236368 | 83,105 |
pythondev | help | You have to find a way to deal with all pages you're interested in, yes.
If that's such a huge problem, then your only way is to use selenium/headless chrome/whatever | 2017-06-26T04:02:43.266386 | Collette | pythondev_help_Collette_2017-06-26T04:02:43.266386 | 1,498,449,763.266386 | 83,106 |
pythondev | help | Yes, so i want to ask if someone had deal with this problem already. | 2017-06-26T04:04:52.293463 | Mirna | pythondev_help_Mirna_2017-06-26T04:04:52.293463 | 1,498,449,892.293463 | 83,107 |
pythondev | help | <@Mirna> Apparently your problem is slowness and lack of processing capacity. Maybe using multiple machines is an option? | 2017-06-26T04:08:22.338826 | Ruben | pythondev_help_Ruben_2017-06-26T04:08:22.338826 | 1,498,450,102.338826 | 83,108 |
pythondev | help | I mean, instead of machine 1 processing news sites A, B and C in succession, you start 3 machines, where machine 1 will process news site A, machine 2 news site B and machine 3 news site C. That will give a 3x speedup. | 2017-06-26T04:09:29.352916 | Ruben | pythondev_help_Ruben_2017-06-26T04:09:29.352916 | 1,498,450,169.352916 | 83,109 |
pythondev | help | Yes i’ve already done that. But i wonder if there is some tool can do this better than phantomjs either selenium. Right now i used 3 servers but only 200 page/ minute has been rendered.
I used cache and proxy and image replacing for reducing the time cost. But it is only slightly better | 2017-06-26T04:13:21.400498 | Mirna | pythondev_help_Mirna_2017-06-26T04:13:21.400498 | 1,498,450,401.400498 | 83,110 |
pythondev | help | sorry to interject, i haven't read everything, but one instance per core (minus 1-2 cores for main process) gives us about 30 headless browsers per machine | 2017-06-26T04:14:05.409858 | Suellen | pythondev_help_Suellen_2017-06-26T04:14:05.409858 | 1,498,450,445.409858 | 83,111 |
pythondev | help | on a second-to-largest GCC instance | 2017-06-26T04:14:20.413128 | Suellen | pythondev_help_Suellen_2017-06-26T04:14:20.413128 | 1,498,450,460.413128 | 83,112 |
pythondev | help | also, headless chrome :heart: | 2017-06-26T04:14:41.417743 | Suellen | pythondev_help_Suellen_2017-06-26T04:14:41.417743 | 1,498,450,481.417743 | 83,113 |
pythondev | help | I used to open 10 instance of headless browser per machine. But the time cost increases with instance of headless browser. More instance ---> more time for rendering. | 2017-06-26T04:19:56.486388 | Mirna | pythondev_help_Mirna_2017-06-26T04:19:56.486388 | 1,498,450,796.486388 | 83,114 |
pythondev | help | I don’t know if i’m doing something wrong with that | 2017-06-26T04:20:14.490253 | Mirna | pythondev_help_Mirna_2017-06-26T04:20:14.490253 | 1,498,450,814.490253 | 83,115 |
pythondev | help | how many cores on these machines? | 2017-06-26T04:20:20.491782 | Suellen | pythondev_help_Suellen_2017-06-26T04:20:20.491782 | 1,498,450,820.491782 | 83,116 |
pythondev | help | 8 cores. | 2017-06-26T04:20:38.495966 | Mirna | pythondev_help_Mirna_2017-06-26T04:20:38.495966 | 1,498,450,838.495966 | 83,117 |
pythondev | help | 10 is too many then :slightly_smiling_face: | 2017-06-26T04:21:01.500796 | Suellen | pythondev_help_Suellen_2017-06-26T04:21:01.500796 | 1,498,450,861.500796 | 83,118 |
pythondev | help | Anywho thanks for your suggestion with headless chrome. I will take a try with it | 2017-06-26T04:22:10.515646 | Mirna | pythondev_help_Mirna_2017-06-26T04:22:10.515646 | 1,498,450,930.515646 | 83,119 |
pythondev | help | :slightly_smiling_face: | 2017-06-26T04:22:10.515813 | Mirna | pythondev_help_Mirna_2017-06-26T04:22:10.515813 | 1,498,450,930.515813 | 83,120 |
pythondev | help | so, phantom is notorious for being slow, and having problems | 2017-06-26T05:32:01.483939 | Meg | pythondev_help_Meg_2017-06-26T05:32:01.483939 | 1,498,455,121.483939 | 83,121 |
pythondev | help | not surprising since its been a one-person project for a number of years now. given the challenges of browser development, phantom's state of functionality is impressive with that restriction | 2017-06-26T05:32:52.496072 | Meg | pythondev_help_Meg_2017-06-26T05:32:52.496072 | 1,498,455,172.496072 | 83,122 |
pythondev | help | however, it is now deprecated and no longer supported since headless chrome came out | 2017-06-26T05:33:12.500356 | Meg | pythondev_help_Meg_2017-06-26T05:33:12.500356 | 1,498,455,192.500356 | 83,123 |
pythondev | help | and unfortunately, this is an instance of where horizontal scaling will have to be used, where you distribute the tasks to be executed among a cluster of similar instances | 2017-06-26T05:33:50.509129 | Meg | pythondev_help_Meg_2017-06-26T05:33:50.509129 | 1,498,455,230.509129 | 83,124 |
pythondev | help | just like with celery workers, there's a sweet spot that can be hit with tasks on each machine for optimium efficiency, but that takes alot of experimenting to do. | 2017-06-26T05:34:35.519124 | Meg | pythondev_help_Meg_2017-06-26T05:34:35.519124 | 1,498,455,275.519124 | 83,125 |
pythondev | help | <@Mirna> what instance size are you running this on, and what provider? AWS, GCC, Azure? | 2017-06-26T05:35:11.527138 | Meg | pythondev_help_Meg_2017-06-26T05:35:11.527138 | 1,498,455,311.527138 | 83,126 |
pythondev | help | It’s running on my own server company. Not provided by any companies above. | 2017-06-26T05:40:09.595895 | Mirna | pythondev_help_Mirna_2017-06-26T05:40:09.595895 | 1,498,455,609.595895 | 83,127 |
pythondev | help | then your only option is to either reduce the rate of crawling or add more hardware | 2017-06-26T05:42:54.633610 | Meg | pythondev_help_Meg_2017-06-26T05:42:54.633610 | 1,498,455,774.63361 | 83,128 |
pythondev | help | because the primary issue is rendering the page and there is a significant lack of options for that | 2017-06-26T05:43:50.646043 | Meg | pythondev_help_Meg_2017-06-26T05:43:50.646043 | 1,498,455,830.646043 | 83,129 |
pythondev | help | Thanks for your advice Jason. | 2017-06-26T05:47:14.692455 | Mirna | pythondev_help_Mirna_2017-06-26T05:47:14.692455 | 1,498,456,034.692455 | 83,130 |
pythondev | help | good luck | 2017-06-26T05:52:29.762481 | Meg | pythondev_help_Meg_2017-06-26T05:52:29.762481 | 1,498,456,349.762481 | 83,131 |
pythondev | help | how do i set the size to python from openpyxl.chart BarChart | 2017-06-26T12:14:53.654550 | Arline | pythondev_help_Arline_2017-06-26T12:14:53.654550 | 1,498,479,293.65455 | 83,132 |
pythondev | help | <@Arline>, did you see this SO thread? | 2017-06-26T12:33:58.082672 | Winnifred | pythondev_help_Winnifred_2017-06-26T12:33:58.082672 | 1,498,480,438.082672 | 83,133 |
pythondev | help | <https://stackoverflow.com/questions/36603753/openpyxl-change-the-dimension-of-a-chart> | 2017-06-26T12:34:10.087054 | Winnifred | pythondev_help_Winnifred_2017-06-26T12:34:10.087054 | 1,498,480,450.087054 | 83,134 |
pythondev | help | thanks i fixed | 2017-06-26T12:34:13.088031 | Arline | pythondev_help_Arline_2017-06-26T12:34:13.088031 | 1,498,480,453.088031 | 83,135 |
pythondev | help | it | 2017-06-26T12:34:14.088332 | Arline | pythondev_help_Arline_2017-06-26T12:34:14.088332 | 1,498,480,454.088332 | 83,136 |
pythondev | help | thanks | 2017-06-26T12:34:16.089019 | Arline | pythondev_help_Arline_2017-06-26T12:34:16.089019 | 1,498,480,456.089019 | 83,137 |
pythondev | help | heh, nice! | 2017-06-26T12:34:23.091961 | Winnifred | pythondev_help_Winnifred_2017-06-26T12:34:23.091961 | 1,498,480,463.091961 | 83,138 |
pythondev | help | <@Winnifred> how do i auto ajust a graph in an excel file? | 2017-06-26T12:45:02.322458 | Arline | pythondev_help_Arline_2017-06-26T12:45:02.322458 | 1,498,481,102.322458 | 83,139 |
pythondev | help | I’m not sure what you mean by auto adjust. | 2017-06-26T12:46:25.353577 | Winnifred | pythondev_help_Winnifred_2017-06-26T12:46:25.353577 | 1,498,481,185.353577 | 83,140 |
pythondev | help | because i have alot of data and the graph just its small and i can't view the graph | 2017-06-26T12:49:36.423729 | Arline | pythondev_help_Arline_2017-06-26T12:49:36.423729 | 1,498,481,376.423729 | 83,141 |
pythondev | help | i don't want the BarChart to distort | 2017-06-26T12:50:52.452092 | Arline | pythondev_help_Arline_2017-06-26T12:50:52.452092 | 1,498,481,452.452092 | 83,142 |
pythondev | help | So you want to write a BarChart to an excel sheet that’s large enough to view both x and y axis? | 2017-06-26T12:52:14.482226 | Winnifred | pythondev_help_Winnifred_2017-06-26T12:52:14.482226 | 1,498,481,534.482226 | 83,143 |
pythondev | help | hi there anyone know how can i add a chart pie with persentages <http://xlsxwriter.readthedocs.io/example_chart_pie.html> | 2017-06-26T14:07:42.176198 | Arline | pythondev_help_Arline_2017-06-26T14:07:42.176198 | 1,498,486,062.176198 | 83,144 |
pythondev | help | Has anyone converted a batch process to something more evented? Language or ecosystem isn't necessarily relevant - I just am curious of the paths people may have taken | 2017-06-26T14:19:40.441372 | Beula | pythondev_help_Beula_2017-06-26T14:19:40.441372 | 1,498,486,780.441372 | 83,145 |
pythondev | help | Only to the degree of going from "big batch process" to "cron job or HTTP request -> tiny bit of big batch process" | 2017-06-26T14:26:49.602806 | Gabriele | pythondev_help_Gabriele_2017-06-26T14:26:49.602806 | 1,498,487,209.602806 | 83,146 |
pythondev | help | <@Arline> `chart.add_series({..., 'data_labels': {'percentage': True}})` | 2017-06-26T16:22:39.049489 | Suellen | pythondev_help_Suellen_2017-06-26T16:22:39.049489 | 1,498,494,159.049489 | 83,147 |
pythondev | help | have you got any guide | 2017-06-26T16:23:37.068542 | Arline | pythondev_help_Arline_2017-06-26T16:23:37.068542 | 1,498,494,217.068542 | 83,148 |
pythondev | help | ?? | 2017-06-26T16:23:39.068961 | Arline | pythondev_help_Arline_2017-06-26T16:23:39.068961 | 1,498,494,219.068961 | 83,149 |
pythondev | help | <https://github.com/jmcnamara/XlsxWriter/blob/3588b318cbabd318c88ad4cb232f10a820705402/dev/docs/source/working_with_charts.rst#chart-series-option-data-labels> | 2017-06-26T16:23:39.069245 | Suellen | pythondev_help_Suellen_2017-06-26T16:23:39.069245 | 1,498,494,219.069245 | 83,150 |
pythondev | help | there is an example for line charts there, but the principle is the same for pie charts | 2017-06-26T16:24:00.076277 | Suellen | pythondev_help_Suellen_2017-06-26T16:24:00.076277 | 1,498,494,240.076277 | 83,151 |
pythondev | help | Where I can find some projects to really get started at programming? Maybe an abstract question but, 1 year programming (and like two months in Python [I was fallen in love of Java, then I hated it]). | 2017-06-26T18:50:17.498735 | Lana | pythondev_help_Lana_2017-06-26T18:50:17.498735 | 1,498,503,017.498735 | 83,152 |
pythondev | help | Then (today) I realized I need to put my -tiny- knowledge in practice... | 2017-06-26T18:50:49.504671 | Lana | pythondev_help_Lana_2017-06-26T18:50:49.504671 | 1,498,503,049.504671 | 83,153 |
pythondev | help | hmm there are lot of MOOC’s i.e. Coursera (which has introduction classes) and there are sites like HackerRack, code academy to help to code :slightly_smiling_face: | 2017-06-26T19:06:06.681175 | Thelma | pythondev_help_Thelma_2017-06-26T19:06:06.681175 | 1,498,503,966.681175 | 83,154 |
pythondev | help | hope that helps | 2017-06-26T19:06:12.682190 | Thelma | pythondev_help_Thelma_2017-06-26T19:06:12.682190 | 1,498,503,972.68219 | 83,155 |
pythondev | help | <@Lana> <https://github.com/karan/Projects> that may help you | 2017-06-26T19:09:17.716331 | Mariano | pythondev_help_Mariano_2017-06-26T19:09:17.716331 | 1,498,504,157.716331 | 83,156 |
pythondev | help | Thanks, as I said, I know how to code, I'm searching for real-life projects to get real stress :stuck_out_tongue: | 2017-06-26T19:12:11.748641 | Lana | pythondev_help_Lana_2017-06-26T19:12:11.748641 | 1,498,504,331.748641 | 83,157 |
pythondev | help | <@Lana> Depends on what gets you excited :slightly_smiling_face: I started by automating away silly things I had to do for work every day. Later as I knew more I started writing some web-apps | 2017-06-26T19:15:29.783701 | Beula | pythondev_help_Beula_2017-06-26T19:15:29.783701 | 1,498,504,529.783701 | 83,158 |
pythondev | help | You can do a clone of a site you like, something that tracks movies and how you like them, etc | 2017-06-26T19:15:48.787060 | Beula | pythondev_help_Beula_2017-06-26T19:15:48.787060 | 1,498,504,548.78706 | 83,159 |
pythondev | help | <@Beula> Looks so difficult to me :disappointed: | 2017-06-26T19:16:45.796938 | Lana | pythondev_help_Lana_2017-06-26T19:16:45.796938 | 1,498,504,605.796938 | 83,160 |
pythondev | help | Which part?
1. Automate repetitive tasks: This should be pretty small to start, maybe you check for a stock price every day. Just do it with python instead of logging into a website
2. Small webapp: This is much bigger since you need to also know HTML and CSS | 2017-06-26T19:18:10.812122 | Beula | pythondev_help_Beula_2017-06-26T19:18:10.812122 | 1,498,504,690.812122 | 83,161 |
pythondev | help | thats how I also got started <@Beula> - i still get excited about all the new ways to do things, that I learn every day lol | 2017-06-26T19:21:11.843316 | Martha | pythondev_help_Martha_2017-06-26T19:21:11.843316 | 1,498,504,871.843316 | 83,162 |
pythondev | help | Will try it, If I get stuck... Well, this is why the channel was made :stuck_out_tongue: | 2017-06-26T19:22:25.856002 | Lana | pythondev_help_Lana_2017-06-26T19:22:25.856002 | 1,498,504,945.856002 | 83,163 |
pythondev | help | I'm trying to convert the categorical values to dummy numerical. but I get error. how can i fix it? | 2017-06-26T20:44:55.624769 | Rana | pythondev_help_Rana_2017-06-26T20:44:55.624769 | 1,498,509,895.624769 | 83,164 |
pythondev | help | ``` <script async src="{{ site.baseurl }}/scripts/loadCSS.min.js"></script>
<noscript>
<link href="{{ site.baseurl }}/style.css" rel="stylesheet">
</noscript>```
but if I need to add another stylesheet, how to do it? | 2017-06-27T05:51:58.760615 | Georgeann | pythondev_help_Georgeann_2017-06-27T05:51:58.760615 | 1,498,542,718.760615 | 83,165 |
pythondev | help | You can have as many link elements as you want | 2017-06-27T05:55:27.812156 | Gabriele | pythondev_help_Gabriele_2017-06-27T05:55:27.812156 | 1,498,542,927.812156 | 83,166 |
pythondev | help | and where do I add styles?
in noscript? - it's not working. | 2017-06-27T05:58:33.858110 | Georgeann | pythondev_help_Georgeann_2017-06-27T05:58:33.858110 | 1,498,543,113.85811 | 83,167 |
pythondev | help | The noscript stuff only runs when there is no script. So I'm guessing that 'loadCSS.min.js' handles all your stylesheets. I'm guessing that's part of some client-side framework you're using | 2017-06-27T06:00:28.888095 | Gabriele | pythondev_help_Gabriele_2017-06-27T06:00:28.888095 | 1,498,543,228.888095 | 83,168 |
pythondev | help | In General, I can't understand how to make styles with loadcss | 2017-06-27T06:04:23.946646 | Georgeann | pythondev_help_Georgeann_2017-06-27T06:04:23.946646 | 1,498,543,463.946646 | 83,169 |
pythondev | help | Why are you using it? | 2017-06-27T06:04:57.955002 | Gabriele | pythondev_help_Gabriele_2017-06-27T06:04:57.955002 | 1,498,543,497.955002 | 83,170 |
pythondev | help | ``` <script async src="{{ site.baseurl }}/scripts/loadCSS.min.js"></script>
<noscript>
<link href="{{ site.baseurl }}/style.css" rel="stylesheet">
</noscript>```
this example is not correct?
Want to speed up the website and listen to `google page speed`, <@Gabriele> | 2017-06-27T06:06:45.980894 | Georgeann | pythondev_help_Georgeann_2017-06-27T06:06:45.980894 | 1,498,543,605.980894 | 83,171 |
pythondev | help | You need to understand how loadCSS works if you want to use it | 2017-06-27T06:07:24.989958 | Gabriele | pythondev_help_Gabriele_2017-06-27T06:07:24.989958 | 1,498,543,644.989958 | 83,172 |
pythondev | help | it true:slightly_frowning_face: | 2017-06-27T06:07:55.997200 | Georgeann | pythondev_help_Georgeann_2017-06-27T06:07:55.997200 | 1,498,543,675.9972 | 83,173 |
pythondev | help | The standard way to use CSS is the `<link>` element, as seen in the noscript section. If you have those link elements outside of the noscript, they will work | 2017-06-27T06:08:02.998806 | Gabriele | pythondev_help_Gabriele_2017-06-27T06:08:02.998806 | 1,498,543,682.998806 | 83,174 |
pythondev | help | I suggest getting it working properly first, and worrying about optimisation later | 2017-06-27T06:08:15.001426 | Gabriele | pythondev_help_Gabriele_2017-06-27T06:08:15.001426 | 1,498,543,695.001426 | 83,175 |
pythondev | help | Opening a file in Python - is it relative to the file location calling the file open? | 2017-06-27T06:17:03.122018 | Temika | pythondev_help_Temika_2017-06-27T06:17:03.122018 | 1,498,544,223.122018 | 83,176 |
pythondev | help | I’m hard coding a path for now, and have `fp = open("../../../media/images/e772778c-9002-4268-a515-b3ced6175723.png", "r")` but it isn’t finding it. That file does exist though | 2017-06-27T06:17:35.129119 | Temika | pythondev_help_Temika_2017-06-27T06:17:35.129119 | 1,498,544,255.129119 | 83,177 |
pythondev | help | Or is it best to go from the root? | 2017-06-27T06:17:42.130497 | Temika | pythondev_help_Temika_2017-06-27T06:17:42.130497 | 1,498,544,262.130497 | 83,178 |
pythondev | help | Opening a file is much the same in most languages - it's relative to the current working directory, which _might_ be the directory that the program lives in, but it can be anything | 2017-06-27T06:19:17.151537 | Gabriele | pythondev_help_Gabriele_2017-06-27T06:19:17.151537 | 1,498,544,357.151537 | 83,179 |
pythondev | help | What is quite typical is to have the program configuration specify a base directory, and for the application to find files relative to that | 2017-06-27T06:19:59.161157 | Gabriele | pythondev_help_Gabriele_2017-06-27T06:19:59.161157 | 1,498,544,399.161157 | 83,180 |
pythondev | help | what is the best (=efficient, pythonic) way to scrape a lot of (ca. 100k) urls which are stored in a list of dicts (e. g. `[{'url': '<http://foo.com/bar|foo.com/bar>', 'category': 'moon'}, ...]` ) and return their status code? i am currently using `urllib2` library which takes about 22s for 100 urls - which would be awfully long when doing it for 100k urls. | 2017-06-27T06:32:50.326792 | Aimee | pythondev_help_Aimee_2017-06-27T06:32:50.326792 | 1,498,545,170.326792 | 83,181 |
pythondev | help | Opening files is something I’ve done very little weirdly :smile: I’ll give base directory a try though, cheers | 2017-06-27T06:32:51.327018 | Temika | pythondev_help_Temika_2017-06-27T06:32:51.327018 | 1,498,545,171.327018 | 83,182 |
pythondev | help | `requests` is preferred over `urllib2` nowadays I think | 2017-06-27T06:33:15.331627 | Temika | pythondev_help_Temika_2017-06-27T06:33:15.331627 | 1,498,545,195.331627 | 83,183 |
pythondev | help | <http://docs.python-requests.org/en/master/> | 2017-06-27T06:33:28.334372 | Temika | pythondev_help_Temika_2017-06-27T06:33:28.334372 | 1,498,545,208.334372 | 83,184 |
pythondev | help | Could also try running it async? I guess it’ll be taking so long because it’ll be waiting for the request to come back before moving onto the next one | 2017-06-27T06:34:08.343131 | Temika | pythondev_help_Temika_2017-06-27T06:34:08.343131 | 1,498,545,248.343131 | 83,185 |
pythondev | help | <@Temika> could you explain this a bit more? i am not completely clear on how to setup async code | 2017-06-27T06:35:01.354081 | Aimee | pythondev_help_Aimee_2017-06-27T06:35:01.354081 | 1,498,545,301.354081 | 83,186 |
pythondev | help | <@Temika> i have experienced issues with `requests` on multiple occasions where the url would not be opened correctly vs. `urllib2` never had this so far. thats why i have opted for the latter | 2017-06-27T06:36:08.367932 | Aimee | pythondev_help_Aimee_2017-06-27T06:36:08.367932 | 1,498,545,368.367932 | 83,187 |
pythondev | help | Are you running Python 2 or 3? | 2017-06-27T06:36:35.373562 | Temika | pythondev_help_Temika_2017-06-27T06:36:35.373562 | 1,498,545,395.373562 | 83,188 |
pythondev | help | currently 2.7 | 2017-06-27T06:36:48.376152 | Aimee | pythondev_help_Aimee_2017-06-27T06:36:48.376152 | 1,498,545,408.376152 | 83,189 |
pythondev | help | and on mac (if that changes anything for you) | 2017-06-27T06:37:10.380480 | Aimee | pythondev_help_Aimee_2017-06-27T06:37:10.380480 | 1,498,545,430.38048 | 83,190 |
pythondev | help | Ah, I’d have suggested `asyncio` but I’m not sure if that has been back ported to 2.7, I think it got released in 3.3. I’m sure others in here might know the answer though :smile: | 2017-06-27T06:39:48.412531 | Temika | pythondev_help_Temika_2017-06-27T06:39:48.412531 | 1,498,545,588.412531 | 83,191 |
pythondev | help | <http://stackabuse.com/python-async-await-tutorial/> | 2017-06-27T06:40:03.415692 | Temika | pythondev_help_Temika_2017-06-27T06:40:03.415692 | 1,498,545,603.415692 | 83,192 |
pythondev | help | I’ve followed this before and it was pretty good. Might give you a hand on understanding a bit more. But as I say, I think it is Python 3.3 onwards | 2017-06-27T06:40:23.419711 | Temika | pythondev_help_Temika_2017-06-27T06:40:23.419711 | 1,498,545,623.419711 | 83,193 |
pythondev | help | <@Aimee> `grequests` is not a bad place to start | 2017-06-27T06:45:00.475032 | Suellen | pythondev_help_Suellen_2017-06-27T06:45:00.475032 | 1,498,545,900.475032 | 83,194 |
pythondev | help | just try to not get banned | 2017-06-27T06:45:17.478515 | Suellen | pythondev_help_Suellen_2017-06-27T06:45:17.478515 | 1,498,545,917.478515 | 83,195 |
pythondev | help | Hello. Any suggestions for a reliable package to implement token based authentication with Flask? | 2017-06-27T07:26:35.984899 | Nannette | pythondev_help_Nannette_2017-06-27T07:26:35.984899 | 1,498,548,395.984899 | 83,196 |
pythondev | help | You might want to try <#C0LN2AD7T|flask> | 2017-06-27T07:28:12.004902 | Gabriele | pythondev_help_Gabriele_2017-06-27T07:28:12.004902 | 1,498,548,492.004902 | 83,197 |
pythondev | help | <@Aimee> there's a <#C5PHT9EGK|webscraping> channel :slightly_smiling_face: | 2017-06-27T07:33:22.070163 | Meg | pythondev_help_Meg_2017-06-27T07:33:22.070163 | 1,498,548,802.070163 | 83,198 |
pythondev | help | Is this flask of Django? They each have a helper to generate the urls for static assets. For flask: `url_for('static', filename='style.css')` and Django you need to load the static plugin and use their helper (it escapes me off the top of my head) | 2017-06-27T08:45:56.097406 | Beula | pythondev_help_Beula_2017-06-27T08:45:56.097406 | 1,498,553,156.097406 | 83,199 |
pythondev | help | Anyone have experience with Stripe’s API in Python? | 2017-06-27T11:07:55.476623 | Temika | pythondev_help_Temika_2017-06-27T11:07:55.476623 | 1,498,561,675.476623 | 83,200 |
pythondev | help | Currently trying to upload a file to stripe, their example code is -
```
with open("/path/to/a/file.jpg", "r") as fp:
stripe.FileUpload.create(
purpose="dispute_evidence",
file=fp
)
```
When I run this *exact* code under Python 3.5 I get the error `UnicodeDecodeError: 'utf-8' codec can't decode byte 0x89 in position 0: invalid start byte`. Adding in `with open("media/image1.png", "r", encoding="ISO-8859-1") as fp:` (which I assume I don’t want), the file goes through to Stripe which they throw back as error `We don't currently support that file type. Try uploading a file with one of the following mimetypes: image/jpeg, image/png` but it is a png :disappointed: | 2017-06-27T11:09:55.531062 | Temika | pythondev_help_Temika_2017-06-27T11:09:55.531062 | 1,498,561,795.531062 | 83,201 |
pythondev | help | encoding mismatch | 2017-06-27T11:11:29.572803 | Patty | pythondev_help_Patty_2017-06-27T11:11:29.572803 | 1,498,561,889.572803 | 83,202 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.