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 | I really dont like how I am instantiating the class with hardcoded configs. is there a better way to handle this? this is a script I am writting so its not going to be used by other files, but still wondering if there is a better way? | 2019-01-18T10:45:17.728700 | Adolfo | pythondev_help_Adolfo_2019-01-18T10:45:17.728700 | 1,547,808,317.7287 | 3,021 |
pythondev | help | ```SENSOR_MONITOR_CONFIG = dict(
host=os.getenv("SM_HOST", "localhost"),
port=os.getenv("SM_PORT", "443"),
username=os.getenv("SM_USERNAME", "admin"),
password=os.getenv("SM_PASSWORD", "admin"),
url_scheme=os.getenv("SM_URL_SCHEME", "https"),
verify_ssl=os.getenv("SM_VERIFY_SSL", False),
)
API_... | 2019-01-18T10:45:22.728900 | Adolfo | pythondev_help_Adolfo_2019-01-18T10:45:22.728900 | 1,547,808,322.7289 | 3,022 |
pythondev | help | <@Adolfo> You can use dictionary unpacking and kwargs on __init__ to handle it. it would look like the following | 2019-01-18T10:49:58.730000 | Clemmie | pythondev_help_Clemmie_2019-01-18T10:49:58.730000 | 1,547,808,598.73 | 3,023 |
pythondev | help | None | 2019-01-18T10:52:23.730500 | Clemmie | pythondev_help_Clemmie_2019-01-18T10:52:23.730500 | 1,547,808,743.7305 | 3,024 |
pythondev | help | thanks, looks cleaner | 2019-01-18T10:55:20.730900 | Adolfo | pythondev_help_Adolfo_2019-01-18T10:55:20.730900 | 1,547,808,920.7309 | 3,025 |
pythondev | help | Hello! everyone | 2019-01-18T12:41:06.733300 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T12:41:06.733300 | 1,547,815,266.7333 | 3,026 |
pythondev | help | So I am having issues doing absolute imports on my computer.. | 2019-01-18T12:42:24.734500 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T12:42:24.734500 | 1,547,815,344.7345 | 3,027 |
pythondev | help | I am getting a ```ModuleNotFoundError``` | 2019-01-18T12:43:24.735300 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T12:43:24.735300 | 1,547,815,404.7353 | 3,028 |
pythondev | help | Please show the file structure, which file is making the import call, and the call itself | 2019-01-18T12:44:57.735900 | Clemmie | pythondev_help_Clemmie_2019-01-18T12:44:57.735900 | 1,547,815,497.7359 | 3,029 |
pythondev | help | └── Test
├── app
├── __init__.py
└── functions.py
└── run.py | 2019-01-18T12:48:29.737800 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T12:48:29.737800 | 1,547,815,709.7378 | 3,030 |
pythondev | help | └── Test
├── app
├── __init__.py
└── functions.py
└── run.py | 2019-01-18T12:48:43.738100 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T12:48:43.738100 | 1,547,815,723.7381 | 3,031 |
pythondev | help | None | 2019-01-18T12:49:47.738400 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T12:49:47.738400 | 1,547,815,787.7384 | 3,032 |
pythondev | help | Is it just a "function" versus "functions" typo? | 2019-01-18T12:52:59.739800 | Sasha | pythondev_help_Sasha_2019-01-18T12:52:59.739800 | 1,547,815,979.7398 | 3,033 |
pythondev | help | no sorry | 2019-01-18T12:54:34.740300 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T12:54:34.740300 | 1,547,816,074.7403 | 3,034 |
pythondev | help | just updated the file. | 2019-01-18T12:55:26.740900 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T12:55:26.740900 | 1,547,816,126.7409 | 3,035 |
pythondev | help | Still not finding the module 'app' | 2019-01-18T12:55:44.741500 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T12:55:44.741500 | 1,547,816,144.7415 | 3,036 |
pythondev | help | try `.functions import print_firstname` | 2019-01-18T12:57:38.742000 | Antionette | pythondev_help_Antionette_2019-01-18T12:57:38.742000 | 1,547,816,258.742 | 3,037 |
pythondev | help | but relative imports work | 2019-01-18T12:57:40.742200 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T12:57:40.742200 | 1,547,816,260.7422 | 3,038 |
pythondev | help | yes that works | 2019-01-18T12:57:46.742400 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T12:57:46.742400 | 1,547,816,266.7424 | 3,039 |
pythondev | help | but I am wondering why absolute does not. I would like to understand what the problem is | 2019-01-18T12:58:19.744000 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T12:58:19.744000 | 1,547,816,299.744 | 3,040 |
pythondev | help | where are you trying to import? if it's in `__init__` it should be relative | 2019-01-18T12:58:22.744200 | Antionette | pythondev_help_Antionette_2019-01-18T12:58:22.744200 | 1,547,816,302.7442 | 3,041 |
pythondev | help | because it doesn't know of `app` | 2019-01-18T12:58:42.744600 | Antionette | pythondev_help_Antionette_2019-01-18T12:58:42.744600 | 1,547,816,322.7446 | 3,042 |
pythondev | help | from run.py I do this and it works | 2019-01-18T12:59:21.745000 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T12:59:21.745000 | 1,547,816,361.745 | 3,043 |
pythondev | help | so how can I configure in such a way to have app.functions | 2019-01-18T12:59:59.745700 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T12:59:59.745700 | 1,547,816,399.7457 | 3,044 |
pythondev | help | out of curiosity if you pull your run.py file into the root directory do you still get the error | 2019-01-18T13:12:19.746200 | Caridad | pythondev_help_Caridad_2019-01-18T13:12:19.746200 | 1,547,817,139.7462 | 3,045 |
pythondev | help | you know what | 2019-01-18T13:20:15.746500 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T13:20:15.746500 | 1,547,817,615.7465 | 3,046 |
pythondev | help | I do not | 2019-01-18T13:20:19.746700 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T13:20:19.746700 | 1,547,817,619.7467 | 3,047 |
pythondev | help | it works just fine | 2019-01-18T13:20:33.747000 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T13:20:33.747000 | 1,547,817,633.747 | 3,048 |
pythondev | help | <https://stackoverflow.com/questions/45448182/absolute-imports-in-python-not-working-relative-imports-work> | 2019-01-18T13:20:47.747200 | Caridad | pythondev_help_Caridad_2019-01-18T13:20:47.747200 | 1,547,817,647.7472 | 3,049 |
pythondev | help | seems like it has to do with how you execute run.py | 2019-01-18T13:22:11.748400 | Caridad | pythondev_help_Caridad_2019-01-18T13:22:11.748400 | 1,547,817,731.7484 | 3,050 |
pythondev | help | and i suspect the `if __name__ = '__main__'`, if you are running the command with `python run.py` with your original directory structure | 2019-01-18T13:23:53.749600 | Caridad | pythondev_help_Caridad_2019-01-18T13:23:53.749600 | 1,547,817,833.7496 | 3,051 |
pythondev | help | Thanks a lot Eugene | 2019-01-18T13:25:14.750200 | Shaniqua | pythondev_help_Shaniqua_2019-01-18T13:25:14.750200 | 1,547,817,914.7502 | 3,052 |
pythondev | help | afternoon all. I have a situation where I have dates in 2 formats that I need to retrieve and then do something with. Basically I have both `%m-%d-%y` and `%m-%d-%Y`. I can't seem to get the IFs and TRYs correct. Can someone assist? | 2019-01-18T14:54:00.752900 | Felisa | pythondev_help_Felisa_2019-01-18T14:54:00.752900 | 1,547,823,240.7529 | 3,053 |
pythondev | help | None | 2019-01-18T14:54:15.753000 | Felisa | pythondev_help_Felisa_2019-01-18T14:54:15.753000 | 1,547,823,255.753 | 3,054 |
pythondev | help | For further context, here is the error: ` "errorMessage": "time data '01-05-19' does not match format '%m-%d-%Y'", ` | 2019-01-18T14:55:59.753700 | Felisa | pythondev_help_Felisa_2019-01-18T14:55:59.753700 | 1,547,823,359.7537 | 3,055 |
pythondev | help | `%Y` is year with century | 2019-01-18T15:02:39.754100 | Carrol | pythondev_help_Carrol_2019-01-18T15:02:39.754100 | 1,547,823,759.7541 | 3,056 |
pythondev | help | I know, I have both date types | 2019-01-18T15:04:19.754900 | Felisa | pythondev_help_Felisa_2019-01-18T15:04:19.754900 | 1,547,823,859.7549 | 3,057 |
pythondev | help | at some point you are trying to create a datetime using the wrong format. If you don’t know the format beforehand, you can wrap it in try/except | 2019-01-18T15:05:17.755900 | Carrol | pythondev_help_Carrol_2019-01-18T15:05:17.755900 | 1,547,823,917.7559 | 3,058 |
pythondev | help | Oh, I see | 2019-01-18T15:05:24.756100 | Carrol | pythondev_help_Carrol_2019-01-18T15:05:24.756100 | 1,547,823,924.7561 | 3,059 |
pythondev | help | I changed it to this and get the same error | 2019-01-18T15:05:47.756600 | Felisa | pythondev_help_Felisa_2019-01-18T15:05:47.756600 | 1,547,823,947.7566 | 3,060 |
pythondev | help | on line seven, create a try block. catch the exception to fall back to the second format. | 2019-01-18T15:06:40.757300 | Carrol | pythondev_help_Carrol_2019-01-18T15:06:40.757300 | 1,547,824,000.7573 | 3,061 |
pythondev | help | ok let me try | 2019-01-18T15:06:56.757500 | Felisa | pythondev_help_Felisa_2019-01-18T15:06:56.757500 | 1,547,824,016.7575 | 3,062 |
pythondev | help | lol no pun intended | 2019-01-18T15:07:03.757700 | Felisa | pythondev_help_Felisa_2019-01-18T15:07:03.757700 | 1,547,824,023.7577 | 3,063 |
pythondev | help | kek | 2019-01-18T15:07:07.757900 | Claudine | pythondev_help_Claudine_2019-01-18T15:07:07.757900 | 1,547,824,027.7579 | 3,064 |
pythondev | help | Same error | 2019-01-18T15:11:27.758600 | Felisa | pythondev_help_Felisa_2019-01-18T15:11:27.758600 | 1,547,824,287.7586 | 3,065 |
pythondev | help | I think you misunderstood. What you want to do is wrap the call to strptime in a try block, like this:
```
try:
delete_date = time.strptime(delete_date, '%m-%d-%y')
except ValueError:
delete_date = time.strptime(delete_date, '%m-%d-%Y')
``` | 2019-01-18T15:12:47.759800 | Carrol | pythondev_help_Carrol_2019-01-18T15:12:47.759800 | 1,547,824,367.7598 | 3,066 |
pythondev | help | that assumes that you’ll only ever encounter the two formats | 2019-01-18T15:13:34.760300 | Carrol | pythondev_help_Carrol_2019-01-18T15:13:34.760300 | 1,547,824,414.7603 | 3,067 |
pythondev | help | I also think you mean to use `date` instead of `time` | 2019-01-18T15:16:12.760600 | Carrol | pythondev_help_Carrol_2019-01-18T15:16:12.760600 | 1,547,824,572.7606 | 3,068 |
pythondev | help | WORKED! | 2019-01-18T15:19:13.760800 | Felisa | pythondev_help_Felisa_2019-01-18T15:19:13.760800 | 1,547,824,753.7608 | 3,069 |
pythondev | help | I didnt change the time to date. Is that important? | 2019-01-18T15:19:39.761200 | Felisa | pythondev_help_Felisa_2019-01-18T15:19:39.761200 | 1,547,824,779.7612 | 3,070 |
pythondev | help | Final snippet | 2019-01-18T15:20:27.761300 | Felisa | pythondev_help_Felisa_2019-01-18T15:20:27.761300 | 1,547,824,827.7613 | 3,071 |
pythondev | help | These are my import btw:
```import boto3
import datetime
import jmespath
import time``` | 2019-01-18T15:21:27.762000 | Felisa | pythondev_help_Felisa_2019-01-18T15:21:27.762000 | 1,547,824,887.762 | 3,072 |
pythondev | help | ah, I assumed you were using datetime.time | 2019-01-18T15:23:07.762300 | Carrol | pythondev_help_Carrol_2019-01-18T15:23:07.762300 | 1,547,824,987.7623 | 3,073 |
pythondev | help | I’d print/log the values just to make sure things look right (or write tests) | 2019-01-18T15:24:05.762800 | Carrol | pythondev_help_Carrol_2019-01-18T15:24:05.762800 | 1,547,825,045.7628 | 3,074 |
pythondev | help | got it and thanks a bunch! | 2019-01-18T15:24:29.763200 | Felisa | pythondev_help_Felisa_2019-01-18T15:24:29.763200 | 1,547,825,069.7632 | 3,075 |
pythondev | help | You’re welcome | 2019-01-18T15:24:54.763500 | Carrol | pythondev_help_Carrol_2019-01-18T15:24:54.763500 | 1,547,825,094.7635 | 3,076 |
pythondev | help | None | 2019-01-18T20:37:12.765400 | Hai | pythondev_help_Hai_2019-01-18T20:37:12.765400 | 1,547,843,832.7654 | 3,077 |
pythondev | help | <@Sasha> <@Shan> <@Marth> <@Jessie> | 2019-01-18T20:37:33.766000 | Hai | pythondev_help_Hai_2019-01-18T20:37:33.766000 | 1,547,843,853.766 | 3,078 |
pythondev | help | I think you need to revisit some course work. | 2019-01-18T20:38:45.766600 | Shan | pythondev_help_Shan_2019-01-18T20:38:45.766600 | 1,547,843,925.7666 | 3,079 |
pythondev | help | Check out <http://learnpythonthehardway.com|learnpythonthehardway.com> | 2019-01-18T20:38:56.767100 | Shan | pythondev_help_Shan_2019-01-18T20:38:56.767100 | 1,547,843,936.7671 | 3,080 |
pythondev | help | The questions you've been having problems on are related to very fundamental programming topics | 2019-01-18T20:40:21.768700 | Shan | pythondev_help_Shan_2019-01-18T20:40:21.768700 | 1,547,844,021.7687 | 3,081 |
pythondev | help | okay | 2019-01-18T20:42:26.768900 | Hai | pythondev_help_Hai_2019-01-18T20:42:26.768900 | 1,547,844,146.7689 | 3,082 |
pythondev | help | I'm really struggling with understanding how to structure data in pandas. Any great course someone can recommend me? | 2019-01-18T23:58:13.770400 | Conchita | pythondev_help_Conchita_2019-01-18T23:58:13.770400 | 1,547,855,893.7704 | 3,083 |
pythondev | help | <@Conchita> I got a lot out of this series: <https://www.youtube.com/playlist?list=PL5-da3qGB5ICCsgW1MxlZ0Hq8LL5U3u9y> | 2019-01-19T00:35:47.771300 | Marth | pythondev_help_Marth_2019-01-19T00:35:47.771300 | 1,547,858,147.7713 | 3,084 |
pythondev | help | whole series is fairly long, but I liked how each piece was pretty digestible | 2019-01-19T00:36:25.771800 | Marth | pythondev_help_Marth_2019-01-19T00:36:25.771800 | 1,547,858,185.7718 | 3,085 |
pythondev | help | The next one in my list to watch (I haven't yet, so can't speak to how good/bad it is) is by Brandon Rhodes: <https://youtu.be/5JnMutdy6Fw> | 2019-01-19T00:40:15.772900 | Marth | pythondev_help_Marth_2019-01-19T00:40:15.772900 | 1,547,858,415.7729 | 3,086 |
pythondev | help | Brandon's name came up in the <#C07EW4DNE|learning_python> channel, so I went looking for content | 2019-01-19T00:41:16.773400 | Marth | pythondev_help_Marth_2019-01-19T00:41:16.773400 | 1,547,858,476.7734 | 3,087 |
pythondev | help | <@Conchita> I’ll suggest you this video as a brief introduction : <https://www.youtube.com/watch?v=F37fV0uFf60> | 2019-01-19T05:52:44.775200 | Roxanne | pythondev_help_Roxanne_2019-01-19T05:52:44.775200 | 1,547,877,164.7752 | 3,088 |
pythondev | help | And this course has a nice hands-on w/ Pandas <https://www.coursera.org/learn/python-data-analysis> | 2019-01-19T05:53:40.775800 | Roxanne | pythondev_help_Roxanne_2019-01-19T05:53:40.775800 | 1,547,877,220.7758 | 3,089 |
pythondev | help | How can I merge a list of attributes to their associated dictionarys? My process uses request calls to a list of names, which then I need to make another separate resource request to get individual characteristics that i have to loop each individual separately. For me to use them later I would like to attach names wi... | 2019-01-19T06:47:49.776700 | Evelyn | pythondev_help_Evelyn_2019-01-19T06:47:49.776700 | 1,547,880,469.7767 | 3,090 |
pythondev | help | Can someone help a brother out?
<https://stackoverflow.com/questions/54267835/create-a-python-function-to-return-a-session-token-and-pass-token-to-celery-task> | 2019-01-19T09:25:49.777500 | Franklyn | pythondev_help_Franklyn_2019-01-19T09:25:49.777500 | 1,547,889,949.7775 | 3,091 |
pythondev | help | You need to break your problem down if you want anyone to answer that, your current question is really, really specific | 2019-01-19T10:02:51.777900 | Jonas | pythondev_help_Jonas_2019-01-19T10:02:51.777900 | 1,547,892,171.7779 | 3,092 |
pythondev | help | as I understand it you want to persist something (a login token) across processes. So, you could use something like Redis, a database or even something as simple as a plain-text file | 2019-01-19T10:03:40.778100 | Jonas | pythondev_help_Jonas_2019-01-19T10:03:40.778100 | 1,547,892,220.7781 | 3,093 |
pythondev | help | When your beat process starts, just check if the token is there. If it’s not, log in and store the token. If the token has expired and you get an error, repeat the process above. | 2019-01-19T10:04:21.778300 | Jonas | pythondev_help_Jonas_2019-01-19T10:04:21.778300 | 1,547,892,261.7783 | 3,094 |
pythondev | help | Protip: When writing a question on stack overflow (or anywhere else) make it as general as possible. If you can’t, then you don’t understand the problem well enough and you should work on improving your understanding of the problem :+1: | 2019-01-19T10:05:08.778500 | Jonas | pythondev_help_Jonas_2019-01-19T10:05:08.778500 | 1,547,892,308.7785 | 3,095 |
pythondev | help | How can I get started with data science ? Can anyone suggest me best Udemy course ? | 2019-01-19T11:00:14.779800 | Tuan | pythondev_help_Tuan_2019-01-19T11:00:14.779800 | 1,547,895,614.7798 | 3,096 |
pythondev | help | I don’t have any suggestions, but we do have a <#C0JB9ATQV|data_science> channel here. Perhaps that would be a better place to ask? | 2019-01-19T11:16:00.781700 | Hiroko | pythondev_help_Hiroko_2019-01-19T11:16:00.781700 | 1,547,896,560.7817 | 3,097 |
pythondev | help | I installed numpy using pip. The version installed is 1.16.0. Wrote the script to test the version but giving error. | 2019-01-19T11:41:25.782200 | Candi | pythondev_help_Candi_2019-01-19T11:41:25.782200 | 1,547,898,085.7822 | 3,098 |
pythondev | help | pls help | 2019-01-19T11:41:32.782600 | Candi | pythondev_help_Candi_2019-01-19T11:41:32.782600 | 1,547,898,092.7826 | 3,099 |
pythondev | help | import-im6.q16: not authorized `numpy' @ error/constitute.c/WriteImage/1037.
./numpy.py: line 2: numpy.version.version: command not found | 2019-01-19T11:42:07.782800 | Candi | pythondev_help_Candi_2019-01-19T11:42:07.782800 | 1,547,898,127.7828 | 3,100 |
pythondev | help | error message | 2019-01-19T11:42:13.783000 | Candi | pythondev_help_Candi_2019-01-19T11:42:13.783000 | 1,547,898,133.783 | 3,101 |
pythondev | help | ```import numpy as np
print(np.__version__)``` | 2019-01-19T11:54:35.785000 | Hiroko | pythondev_help_Hiroko_2019-01-19T11:54:35.785000 | 1,547,898,875.785 | 3,102 |
pythondev | help | <https://stackoverflow.com/questions/1520234/how-do-i-check-which-version-of-numpy-im-using#comment1378014_1520264> | 2019-01-19T11:55:26.785300 | Hiroko | pythondev_help_Hiroko_2019-01-19T11:55:26.785300 | 1,547,898,926.7853 | 3,103 |
pythondev | help | >>> This is the API we numpy developers will support. `numpy.version.version` is an implementation detail that should not be relied upon. | 2019-01-19T11:56:35.786200 | Hiroko | pythondev_help_Hiroko_2019-01-19T11:56:35.786200 | 1,547,898,995.7862 | 3,104 |
pythondev | help | [Windows] Hi all! I'd like to fully convert to Python Launcher on Windows in our organization. However lots of our scripts look like
python /path/to/script.py
I want to remove python.exe from PATH completely, but I do not see a way to keep these scripts working without changing them. Can it be done somehow?
Thanks a... | 2019-01-19T15:34:52.788300 | Brandie | pythondev_help_Brandie_2019-01-19T15:34:52.788300 | 1,547,912,092.7883 | 3,105 |
pythondev | help | So, if I understand you, you want to remove python.exe from PATH, but you want any command that uses python.exe to still run as-is? That's pretty much the definition of keeping it in PATH, if it still can run whenever you use it. What's the goal of removing it from PATH, then? | 2019-01-19T15:57:11.790200 | Sasha | pythondev_help_Sasha_2019-01-19T15:57:11.790200 | 1,547,913,431.7902 | 3,106 |
pythondev | help | <@Sasha> Yeah, that is kind of an contradiction in itself. The goal is to unify the launch of the python scripts and make it controllable at one place by configuring the launcher.
With launcher and python.exe in the path it can happen different versions of python are run for
$ python script.py
and
script.py
As a s... | 2019-01-19T17:02:47.797800 | Brandie | pythondev_help_Brandie_2019-01-19T17:02:47.797800 | 1,547,917,367.7978 | 3,107 |
pythondev | help | Don’t newer python releases fix this by having a shim launcher? | 2019-01-19T17:03:30.798200 | Jonas | pythondev_help_Jonas_2019-01-19T17:03:30.798200 | 1,547,917,410.7982 | 3,108 |
pythondev | help | I remember reading about this being introduced | 2019-01-19T17:03:52.798500 | Jonas | pythondev_help_Jonas_2019-01-19T17:03:52.798500 | 1,547,917,432.7985 | 3,109 |
pythondev | help | <@Jonas> <https://pythondev.slack.com/archives/C07EFMZ1N/p1547930092788300> | 2019-01-19T17:11:30.799000 | Brandie | pythondev_help_Brandie_2019-01-19T17:11:30.799000 | 1,547,917,890.799 | 3,110 |
pythondev | help | Oh right, I misread the original question. | 2019-01-19T17:13:19.799500 | Jonas | pythondev_help_Jonas_2019-01-19T17:13:19.799500 | 1,547,917,999.7995 | 3,111 |
pythondev | help | I’d just fix the scripts | 2019-01-19T17:13:41.799700 | Jonas | pythondev_help_Jonas_2019-01-19T17:13:41.799700 | 1,547,918,021.7997 | 3,112 |
pythondev | help | seems the more correct way, rather than removing python from the PATH | 2019-01-19T17:13:56.800100 | Jonas | pythondev_help_Jonas_2019-01-19T17:13:56.800100 | 1,547,918,036.8001 | 3,113 |
pythondev | help | <@Jonas> fix in what way? | 2019-01-19T17:14:41.801000 | Brandie | pythondev_help_Brandie_2019-01-19T17:14:41.801000 | 1,547,918,081.801 | 3,114 |
pythondev | help | I'm trying to get some data using a HTTP request
```hdr = {'User-Agent': 'curl/7.53.1',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Connection': 'keep-alive',
'Access_token': 'XXX',
'Client-ID': 'XXX'}
url='<https://a.wunderlist.com/api/v1/lists>'
req=urllib... | 2019-01-19T17:20:24.802000 | Jackie | pythondev_help_Jackie_2019-01-19T17:20:24.802000 | 1,547,918,424.802 | 3,115 |
pythondev | help | I’d recommend using `requests` over urllib. But in any case, your access token is incorrect. Hence the server is telling you you’re forbidden | 2019-01-19T17:22:27.802800 | Jonas | pythondev_help_Jonas_2019-01-19T17:22:27.802800 | 1,547,918,547.8028 | 3,116 |
pythondev | help | try looking at the response text to see if it’s giving you an explicit error | 2019-01-19T17:22:38.803100 | Jonas | pythondev_help_Jonas_2019-01-19T17:22:38.803100 | 1,547,918,558.8031 | 3,117 |
pythondev | help | requests is a part of the urllib, isn't it?
I have cencored the token and client ID before I pasted those in | 2019-01-19T17:24:04.803900 | Jackie | pythondev_help_Jackie_2019-01-19T17:24:04.803900 | 1,547,918,644.8039 | 3,118 |
pythondev | help | requests is a third party package, it’s a library for making http requests. It’s a lot easier to use than `urllib` | 2019-01-19T17:28:15.805000 | Jonas | pythondev_help_Jonas_2019-01-19T17:28:15.805000 | 1,547,918,895.805 | 3,119 |
pythondev | help | If you take a look at the error message the server is sending back, you’ll see it’s a 403 forbidden. This happens when the server doesn’t accept your credentials | 2019-01-19T17:28:51.805800 | Jonas | pythondev_help_Jonas_2019-01-19T17:28:51.805800 | 1,547,918,931.8058 | 3,120 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.