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’ve built an elk stack for logging at my old place of employment. it depends on what you mean by analytics :wink:.
2017-07-01T14:09:41.344069
Johana
pythondev_help_Johana_2017-07-01T14:09:41.344069
1,498,918,181.344069
83,803
pythondev
help
you could analyze the data with scripts and use things like stochastic gradient descent and things like that or you can build dashboards.
2017-07-01T14:10:27.348171
Johana
pythondev_help_Johana_2017-07-01T14:10:27.348171
1,498,918,227.348171
83,804
pythondev
help
not sure how you’re trying to check out these events.
2017-07-01T14:10:43.349534
Johana
pythondev_help_Johana_2017-07-01T14:10:43.349534
1,498,918,243.349534
83,805
pythondev
help
we used the logs to determine if there were issues in the network.
2017-07-01T14:11:24.352768
Johana
pythondev_help_Johana_2017-07-01T14:11:24.352768
1,498,918,284.352768
83,806
pythondev
help
I will log request, pageviews and other user actions.
2017-07-01T14:11:35.353580
Odell
pythondev_help_Odell_2017-07-01T14:11:35.353580
1,498,918,295.35358
83,807
pythondev
help
do you have any experience with flask?
2017-07-01T14:11:54.355073
Johana
pythondev_help_Johana_2017-07-01T14:11:54.355073
1,498,918,314.355073
83,808
pythondev
help
or python web frameworks?
2017-07-01T14:12:07.356231
Johana
pythondev_help_Johana_2017-07-01T14:12:07.356231
1,498,918,327.356231
83,809
pythondev
help
i try not to assume things.
2017-07-01T14:12:30.358228
Johana
pythondev_help_Johana_2017-07-01T14:12:30.358228
1,498,918,350.358228
83,810
pythondev
help
Yes I've decent experience on django
2017-07-01T14:12:30.358323
Odell
pythondev_help_Odell_2017-07-01T14:12:30.358323
1,498,918,350.358323
83,811
pythondev
help
k
2017-07-01T14:12:42.359309
Johana
pythondev_help_Johana_2017-07-01T14:12:42.359309
1,498,918,362.359309
83,812
pythondev
help
just a sec let me bust out a code sample.
2017-07-01T14:12:50.359850
Johana
pythondev_help_Johana_2017-07-01T14:12:50.359850
1,498,918,370.35985
83,813
pythondev
help
I can learn flask fast
2017-07-01T14:13:17.362164
Odell
pythondev_help_Odell_2017-07-01T14:13:17.362164
1,498,918,397.362164
83,814
pythondev
help
pycharm is slow :stuck_out_tongue:
2017-07-01T14:13:54.364922
Odell
pythondev_help_Odell_2017-07-01T14:13:54.364922
1,498,918,434.364922
83,815
pythondev
help
i also had to get my kid off of the table.
2017-07-01T14:15:13.371566
Johana
pythondev_help_Johana_2017-07-01T14:15:13.371566
1,498,918,513.371566
83,816
pythondev
help
okay
2017-07-01T14:16:23.377571
Odell
pythondev_help_Odell_2017-07-01T14:16:23.377571
1,498,918,583.377571
83,817
pythondev
help
for user analytics you could use django or flask. to get the user events you’ll need some sort of middleware. i’m not talking about that part. what i’m showing is how to get data into elastic search.
2017-07-01T14:17:01.380533
Johana
pythondev_help_Johana_2017-07-01T14:17:01.380533
1,498,918,621.380533
83,818
pythondev
help
once you have data in elastic search then the kibana parts comes into play but you will also need to figure that part out.
2017-07-01T14:17:33.383167
Johana
pythondev_help_Johana_2017-07-01T14:17:33.383167
1,498,918,653.383167
83,819
pythondev
help
ok
2017-07-01T14:17:43.383952
Odell
pythondev_help_Odell_2017-07-01T14:17:43.383952
1,498,918,663.383952
83,820
pythondev
help
Waiting :slightly_smiling_face:
2017-07-01T14:20:46.399506
Odell
pythondev_help_Odell_2017-07-01T14:20:46.399506
1,498,918,846.399506
83,821
pythondev
help
ya, wondering if i should make a big gist. there are several things involved.
2017-07-01T14:21:00.400789
Johana
pythondev_help_Johana_2017-07-01T14:21:00.400789
1,498,918,860.400789
83,822
pythondev
help
ok take your time :slightly_smiling_face:
2017-07-01T14:21:49.404910
Odell
pythondev_help_Odell_2017-07-01T14:21:49.404910
1,498,918,909.40491
83,823
pythondev
help
dang i need to edit this in a bigger window. lol
2017-07-01T14:23:44.414193
Johana
pythondev_help_Johana_2017-07-01T14:23:44.414193
1,498,919,024.414193
83,824
pythondev
help
either way, in flask you’ll need to do something like that and establish a connection with elastic search.
2017-07-01T14:24:31.418202
Johana
pythondev_help_Johana_2017-07-01T14:24:31.418202
1,498,919,071.418202
83,825
pythondev
help
when your app starts up.
2017-07-01T14:24:36.418621
Johana
pythondev_help_Johana_2017-07-01T14:24:36.418621
1,498,919,076.418621
83,826
pythondev
help
there may be a flask-extension for it already
2017-07-01T14:24:46.419408
Johana
pythondev_help_Johana_2017-07-01T14:24:46.419408
1,498,919,086.419408
83,827
pythondev
help
where you can simply add in the right settings.
2017-07-01T14:24:59.420570
Johana
pythondev_help_Johana_2017-07-01T14:24:59.420570
1,498,919,099.42057
83,828
pythondev
help
ok then
2017-07-01T14:26:03.426163
Odell
pythondev_help_Odell_2017-07-01T14:26:03.426163
1,498,919,163.426163
83,829
pythondev
help
i’ve updated it with the model. you need to create a model to describe how your document is structured.
2017-07-01T14:31:55.455871
Johana
pythondev_help_Johana_2017-07-01T14:31:55.455871
1,498,919,515.455871
83,830
pythondev
help
oh cool. yea you can use this :smiley: <https://github.com/chiangf/Flask-Elasticsearch>
2017-07-01T14:33:32.464249
Johana
pythondev_help_Johana_2017-07-01T14:33:32.464249
1,498,919,612.464249
83,831
pythondev
help
You used Flask + ES + Kibana?
2017-07-01T14:35:31.473999
Odell
pythondev_help_Odell_2017-07-01T14:35:31.473999
1,498,919,731.473999
83,832
pythondev
help
no kibana
2017-07-01T14:36:01.476130
Johana
pythondev_help_Johana_2017-07-01T14:36:01.476130
1,498,919,761.47613
83,833
pythondev
help
in my project recently.
2017-07-01T14:36:12.476904
Johana
pythondev_help_Johana_2017-07-01T14:36:12.476904
1,498,919,772.476904
83,834
pythondev
help
my past project with ES and Kibana didn’t have flask
2017-07-01T14:36:22.477761
Johana
pythondev_help_Johana_2017-07-01T14:36:22.477761
1,498,919,782.477761
83,835
pythondev
help
How did you build dashboard?
2017-07-01T14:36:46.479608
Odell
pythondev_help_Odell_2017-07-01T14:36:46.479608
1,498,919,806.479608
83,836
pythondev
help
i built the dashboard with kibana.
2017-07-01T14:39:31.492596
Johana
pythondev_help_Johana_2017-07-01T14:39:31.492596
1,498,919,971.492596
83,837
pythondev
help
flask is only involved in this process b/c it’s generating the event.
2017-07-01T14:41:05.499820
Johana
pythondev_help_Johana_2017-07-01T14:41:05.499820
1,498,920,065.49982
83,838
pythondev
help
i’m just showing how to save data to elastic search in python with a flask view. once you have data in EL then you can use Kibana to do analytics. Kibana could be installed on a totally different server.
2017-07-01T14:41:41.502529
Johana
pythondev_help_Johana_2017-07-01T14:41:41.502529
1,498,920,101.502529
83,839
pythondev
help
hmm.. i could probably PR this elastic search model code i have with this flask extension.
2017-07-01T14:42:48.507696
Johana
pythondev_help_Johana_2017-07-01T14:42:48.507696
1,498,920,168.507696
83,840
pythondev
help
it’s nice mapping a document to a class.
2017-07-01T14:42:58.508397
Johana
pythondev_help_Johana_2017-07-01T14:42:58.508397
1,498,920,178.508397
83,841
pythondev
help
Yeah, that will be nice.
2017-07-01T14:43:29.510865
Odell
pythondev_help_Odell_2017-07-01T14:43:29.510865
1,498,920,209.510865
83,842
pythondev
help
i know it’s a lot of pieces there and gaps but you get started down the path you will get each working :wink:.
2017-07-01T14:44:07.513666
Johana
pythondev_help_Johana_2017-07-01T14:44:07.513666
1,498,920,247.513666
83,843
pythondev
help
i've few questions.
2017-07-01T14:44:43.516799
Odell
pythondev_help_Odell_2017-07-01T14:44:43.516799
1,498,920,283.516799
83,844
pythondev
help
k
2017-07-01T14:45:05.518760
Johana
pythondev_help_Johana_2017-07-01T14:45:05.518760
1,498,920,305.51876
83,845
pythondev
help
Can you tell me about the architecture part, or process flow.
2017-07-01T14:46:19.524894
Odell
pythondev_help_Odell_2017-07-01T14:46:19.524894
1,498,920,379.524894
83,846
pythondev
help
Is it something like this - 1. User creates an event. 2. Flask view logs data in ES. 3. Kibana gets data from ES and shows it in dashboard.
2017-07-01T14:48:21.534422
Odell
pythondev_help_Odell_2017-07-01T14:48:21.534422
1,498,920,501.534422
83,847
pythondev
help
Aren't you using any async tasks queues like rabbitmq or kafka?
2017-07-01T14:48:58.537167
Odell
pythondev_help_Odell_2017-07-01T14:48:58.537167
1,498,920,538.537167
83,848
pythondev
help
you could but in the most basic sense you would use the middleware to do a post on elastic search with the data about the event.
2017-07-01T14:59:23.585652
Johana
pythondev_help_Johana_2017-07-01T14:59:23.585652
1,498,921,163.585652
83,849
pythondev
help
I found this blog post for similar usecase - <http://engineering.hackerearth.com/2015/02/26/logging-millions-requests-what-it-takes/|engineering.hackerearth.com/2015/02/26/logging-millions-requests-what-it-takes/> They used kafka + rabittmq + mongodb + S3 + redshift to build complete architecture
2017-07-01T15:01:08.595267
Odell
pythondev_help_Odell_2017-07-01T15:01:08.595267
1,498,921,268.595267
83,850
pythondev
help
ES will be better than this?
2017-07-01T15:01:53.598921
Odell
pythondev_help_Odell_2017-07-01T15:01:53.598921
1,498,921,313.598921
83,851
pythondev
help
oh idk about that. i haven’t used all those before. what i proposed was for something simpler but it could grow to using those things once you need “web scale”. hence, the “logging millions of requests everyday”.
2017-07-01T15:04:54.613805
Johana
pythondev_help_Johana_2017-07-01T15:04:54.613805
1,498,921,494.613805
83,852
pythondev
help
okay, thanks :slightly_smiling_face: Now I should connect the dots using the code you provided.
2017-07-01T15:09:12.634770
Odell
pythondev_help_Odell_2017-07-01T15:09:12.634770
1,498,921,752.63477
83,853
pythondev
help
One quick question, how many servers u used? What will be minimal cost to setup this?
2017-07-01T15:10:09.639229
Odell
pythondev_help_Odell_2017-07-01T15:10:09.639229
1,498,921,809.639229
83,854
pythondev
help
yea, i’m thinking i may need to do an example app for this now.
2017-07-01T15:10:25.640710
Johana
pythondev_help_Johana_2017-07-01T15:10:25.640710
1,498,921,825.64071
83,855
pythondev
help
do you already have a site you’re trying to integrate this into?
2017-07-01T15:11:37.646473
Johana
pythondev_help_Johana_2017-07-01T15:11:37.646473
1,498,921,897.646473
83,856
pythondev
help
or your just interested in getting it going on your own site?
2017-07-01T15:11:52.647626
Johana
pythondev_help_Johana_2017-07-01T15:11:52.647626
1,498,921,912.647626
83,857
pythondev
help
I want to integrate it to a website running on Django.
2017-07-01T15:13:09.653608
Odell
pythondev_help_Odell_2017-07-01T15:13:09.653608
1,498,921,989.653608
83,858
pythondev
help
<https://qbox.io/blog/how-to-elasticsearch-python-django-part1>
2017-07-01T15:13:50.657035
Johana
pythondev_help_Johana_2017-07-01T15:13:50.657035
1,498,922,030.657035
83,859
pythondev
help
cost involved?
2017-07-01T15:16:50.671127
Odell
pythondev_help_Odell_2017-07-01T15:16:50.671127
1,498,922,210.671127
83,860
pythondev
help
oh idk the cost we had our own vm infrastructure.
2017-07-01T15:17:40.675100
Johana
pythondev_help_Johana_2017-07-01T15:17:40.675100
1,498,922,260.6751
83,861
pythondev
help
How many VMs you used?
2017-07-01T15:18:00.676559
Odell
pythondev_help_Odell_2017-07-01T15:18:00.676559
1,498,922,280.676559
83,862
pythondev
help
there was a central server that ran logstash and the elastic search server with kibana so 2 servers. we also had another server running OSSEC.
2017-07-01T15:21:54.695007
Johana
pythondev_help_Johana_2017-07-01T15:21:54.695007
1,498,922,514.695007
83,863
pythondev
help
it’s been a few years now. i’ve slept since then and don’t remember all the details as i’m not involved in networking admin anymore.
2017-07-01T15:22:51.699604
Johana
pythondev_help_Johana_2017-07-01T15:22:51.699604
1,498,922,571.699604
83,864
pythondev
help
<https://qbox.io/blog/welcome-to-the-elk-stack-elasticsearch-logstash-kibana>
2017-07-01T15:23:25.702175
Johana
pythondev_help_Johana_2017-07-01T15:23:25.702175
1,498,922,605.702175
83,865
pythondev
help
i remember our biggest problem was storage.
2017-07-01T15:24:13.705584
Johana
pythondev_help_Johana_2017-07-01T15:24:13.705584
1,498,922,653.705584
83,866
pythondev
help
there was also grokking all the different kinds of logs.
2017-07-01T15:24:29.707026
Johana
pythondev_help_Johana_2017-07-01T15:24:29.707026
1,498,922,669.707026
83,867
pythondev
help
the one big gripe about ES is that it’s easy to get data in there but hard to take it back out. to combat this while you save a document for EL to index you can also create a record in a relational db. this will help for other kinds of reporting.
2017-07-01T15:27:04.718901
Johana
pythondev_help_Johana_2017-07-01T15:27:04.718901
1,498,922,824.718901
83,868
pythondev
help
for logs we didn’t care about the relational db part. we needed to analyze them in real-time and then archive them.
2017-07-01T15:29:33.729959
Johana
pythondev_help_Johana_2017-07-01T15:29:33.729959
1,498,922,973.729959
83,869
pythondev
help
you can also get ES running super quick with docker.
2017-07-01T15:30:24.734155
Johana
pythondev_help_Johana_2017-07-01T15:30:24.734155
1,498,923,024.734155
83,870
pythondev
help
Why RDBMS and not MongoDB?
2017-07-01T15:30:39.735532
Odell
pythondev_help_Odell_2017-07-01T15:30:39.735532
1,498,923,039.735532
83,871
pythondev
help
well ES is already a document store. using something like Mongo would be redundant but i guess if you wanted to you could.
2017-07-01T15:32:07.742410
Johana
pythondev_help_Johana_2017-07-01T15:32:07.742410
1,498,923,127.74241
83,872
pythondev
help
it’s generally not a good idea to try and do things a relational database can do in a document database like joins. i suggested saving to a rdbms in the process mainly so you can take advantage of an rdms at the same time. this won’t be needed for every application.
2017-07-01T15:34:15.752811
Johana
pythondev_help_Johana_2017-07-01T15:34:15.752811
1,498,923,255.752811
83,873
pythondev
help
this is my docker-compose.yml for ES: ``` version: '3' services: elasticsearch: image: nickstenning/elasticsearch-icu ports: - '127.0.0.1:9200:9200' ``` you can type `docker-compose up` and it will start the service for you.
2017-07-01T15:34:54.755882
Johana
pythondev_help_Johana_2017-07-01T15:34:54.755882
1,498,923,294.755882
83,874
pythondev
help
So I should store data in both, ES and RDBMS if I want to access it frequently?
2017-07-01T15:36:21.762760
Odell
pythondev_help_Odell_2017-07-01T15:36:21.762760
1,498,923,381.76276
83,875
pythondev
help
i don’t know what you should do b/c i don’t know the requirements i was just letting you know what you could do :wink:
2017-07-01T15:37:02.766205
Johana
pythondev_help_Johana_2017-07-01T15:37:02.766205
1,498,923,422.766205
83,876
pythondev
help
&gt; i suggested saving to a rdbms in the process mainly so you can take advantage of an rdbms at the same time. this won’t be needed for every application.
2017-07-01T15:37:31.768579
Johana
pythondev_help_Johana_2017-07-01T15:37:31.768579
1,498,923,451.768579
83,877
pythondev
help
Hmm. By storing document in RDBMS, did you mean creating schema based on keys in document?
2017-07-01T15:41:19.786309
Odell
pythondev_help_Odell_2017-07-01T15:41:19.786309
1,498,923,679.786309
83,878
pythondev
help
yea, you can save the data to the db and get back from the database the inserted record. That would look like this maybe `{"id": 1, "name": "a1gupta", "role": "1", "created_on": "2017-10-11 343434"}`. once you get what the database has you send it to ES.
2017-07-01T15:42:50.792964
Johana
pythondev_help_Johana_2017-07-01T15:42:50.792964
1,498,923,770.792964
83,879
pythondev
help
that’s how you would make a search engine with ES btw. which is what i did recently. you can take those same values in the dict and pass them as query params to a search endpoint.
2017-07-01T15:45:17.803900
Johana
pythondev_help_Johana_2017-07-01T15:45:17.803900
1,498,923,917.8039
83,880
pythondev
help
Thanks <@Johana> . I think I should start now to understand it better. :upside_down_face:
2017-07-01T15:51:04.830247
Odell
pythondev_help_Odell_2017-07-01T15:51:04.830247
1,498,924,264.830247
83,881
pythondev
help
code it the way you see it :smiley: it looks like there may be a few problems to solve before getting to ES like getting the events you want.
2017-07-01T15:52:06.834759
Johana
pythondev_help_Johana_2017-07-01T15:52:06.834759
1,498,924,326.834759
83,882
pythondev
help
i’m sure there are some django plugins that can help you with that.
2017-07-01T15:52:25.836258
Johana
pythondev_help_Johana_2017-07-01T15:52:25.836258
1,498,924,345.836258
83,883
pythondev
help
ppl in the <#C0LMFRMB5|django> channel would know.
2017-07-01T16:12:03.927764
Johana
pythondev_help_Johana_2017-07-01T16:12:03.927764
1,498,925,523.927764
83,884
pythondev
help
I have something seemingly complex and puzzling. I’m trying to add dynamic localization to my library which also powers a REST API. I was able to add the gettext _() function by running this at my root before importing the other modules ``` LOCALE = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'locale') gettext.install('app, LOCALE) from app import foo, bar ``` That works great. However, I want to add dynamic localization for certain functions. Ex: ``` # Using system foo() # Using given locale foo(lang='es') # Goes back to system foo() ``` I’m trying to do this by running within a context switcher: ``` @contextmanager def set_language(lang: str=None): # Set language if not lang is None: gettext.translation('app', LOCALE, languages=[lang], fallback=True).install() yield # Revert to system default gettext.install('app', LOCALE) def foo(lang: str=None): with set_language(lang): print(_('Foo the bar')) ``` But I’m getting this opaque error and can’t figure out how to isolate it ``` print(_('Foo the Bar')) TypeError: 'bool' object is not callable ``` The interesting part is that it works on the first call to foo but not the second. My guess is that something is going on after the `yield` which screws the system up, but I’m not sure where, why, or how to ask the right question
2017-07-01T21:15:32.046642
Elane
pythondev_help_Elane_2017-07-01T21:15:32.046642
1,498,943,732.046642
83,885
pythondev
help
OH MY GOD. I’ve been testing this in the REPL. I have a function which returns a boolean that gets “thrown away”, but the REPL assigns it to `_` which overwrites the global `_` set by `gettext.install()`
2017-07-02T00:17:08.596109
Elane
pythondev_help_Elane_2017-07-02T00:17:08.596109
1,498,954,628.596109
83,886
pythondev
help
Thoughts on how to make gettext REPL-safe?
2017-07-02T00:20:56.608134
Elane
pythondev_help_Elane_2017-07-02T00:20:56.608134
1,498,954,856.608134
83,887
pythondev
help
<@Elane> don't use `install`?
2017-07-02T00:29:21.633306
Collette
pythondev_help_Collette_2017-07-02T00:29:21.633306
1,498,955,361.633306
83,888
pythondev
help
Hey, everyone. In <#C5PHT9EGK|webscraping> I asked the question. I think it's more appropriate. Who is not difficult, come in, please.
2017-07-02T03:42:52.164401
Georgeann
pythondev_help_Georgeann_2017-07-02T03:42:52.164401
1,498,966,972.164401
83,889
pythondev
help
``` d["Jan. 5, 2017"] Out[43]: {'issue': u'importmant', 'url': '<http://www.roga.html>'} ``` if in the dictionary I want the date to add another `issue` and the `url` how to do it properly?
2017-07-02T04:35:20.332027
Georgeann
pythondev_help_Georgeann_2017-07-02T04:35:20.332027
1,498,970,120.332027
83,890
pythondev
help
``` d["Jan. 5, 2017"] Out[43]: {'issue': [u'importmant', u"very importmant"], 'url': ['<http://www.roga.html>', "<http://www.kopita.com|www.kopita.com>"]}``` I think that this kind of suit me, but I don't know how to do it...
2017-07-02T04:37:39.338936
Georgeann
pythondev_help_Georgeann_2017-07-02T04:37:39.338936
1,498,970,259.338936
83,891
pythondev
help
``` &gt;&gt;&gt; from collections import defaultdict &gt;&gt;&gt; d = defaultdict(list) &gt;&gt;&gt; d['issue'].append('important') &gt;&gt;&gt; d['issue'].append('very important') &gt;&gt;&gt; d['url'].append('<http://google.com>') &gt;&gt;&gt; d['url'].append('<http://yahoo.com>') &gt;&gt;&gt; d defaultdict(&lt;class 'list'&gt;, {'issue': ['important', 'very important'], 'url': ['<http://google.com>', '<http://yahoo.com>']}) &gt;&gt;&gt; dict(d) {'issue': ['important', 'very important'], 'url': ['<http://google.com>', '<http://yahoo.com>']} ```
2017-07-02T05:17:14.465547
Suellen
pythondev_help_Suellen_2017-07-02T05:17:14.465547
1,498,972,634.465547
83,892
pythondev
help
Thank you :clap::blush:
2017-07-02T05:42:30.543867
Georgeann
pythondev_help_Georgeann_2017-07-02T05:42:30.543867
1,498,974,150.543867
83,893
pythondev
help
Did not understand until the end. I hope to help. ```z = {u'Jan. 5, 2017': {'url__result': ['<http://www.something.htm>'], 'issue': [u'something_issue']}} ``` For example I have the following date is the same. I want to add to `z` - ```url__result = "<http://www.google.com|www.google.com>" issue = "import" ``` What should I use?
2017-07-02T10:51:55.689567
Georgeann
pythondev_help_Georgeann_2017-07-02T10:51:55.689567
1,498,992,715.689567
83,894
pythondev
help
and the date stay the same? So Jan 5, 2017 would have two {url_result, issue} sets?
2017-07-02T10:58:52.720788
Deedee
pythondev_help_Deedee_2017-07-02T10:58:52.720788
1,498,993,132.720788
83,895
pythondev
help
<@Deedee> I want this ``` d["Jan. 5, 2017"] Out[43]: {'issue': [u'importmant', u"very importmant"], 'url': ['<http://www.roga.html>', "<http://www.kopita.com|www.kopita.com>"]}```
2017-07-02T10:59:59.725670
Georgeann
pythondev_help_Georgeann_2017-07-02T10:59:59.725670
1,498,993,199.72567
83,896
pythondev
help
I have a few lists with these dates, I need a dictionary, the Date can be the same as each other, so I need to get my dictionary are not overwritten as I have now, and added new values.
2017-07-02T11:02:30.738868
Georgeann
pythondev_help_Georgeann_2017-07-02T11:02:30.738868
1,498,993,350.738868
83,897
pythondev
help
actually, take another look at leovp's solution.
2017-07-02T11:08:43.767309
Deedee
pythondev_help_Deedee_2017-07-02T11:08:43.767309
1,498,993,723.767309
83,898
pythondev
help
The decision is good, but I can't figure out how to make the key "10.01.2007" was {'issue': ['important'], 'url': ['<http://google.com>']} . And what if the next date goes "10.01.2007" the data was added to the list to "important" to "<http://google.com|google.com>". I have overwritten now.
2017-07-02T11:12:01.782051
Georgeann
pythondev_help_Georgeann_2017-07-02T11:12:01.782051
1,498,993,921.782051
83,899
pythondev
help
```from collections import defaultdict d = defaultdict(list) d['issue'].append('important') d['url'].append('<http://google.com>') z = {} z["10.01.2005"] = dict(d) z Out[13]: {'10.01.2005': {'issue': ['important'], 'url': ['<http://google.com>']}} ```
2017-07-02T11:14:10.791696
Georgeann
pythondev_help_Georgeann_2017-07-02T11:14:10.791696
1,498,994,050.791696
83,900
pythondev
help
how to continue to add data, I do not understand.
2017-07-02T11:14:32.793319
Georgeann
pythondev_help_Georgeann_2017-07-02T11:14:32.793319
1,498,994,072.793319
83,901
pythondev
help
`append` to the list...for sure...now try
2017-07-02T11:19:14.814640
Georgeann
pythondev_help_Georgeann_2017-07-02T11:19:14.814640
1,498,994,354.81464
83,902