Using asyncio and websockets, I’m subscribed to 256 websockets all at once from binance server. I need all this data for instant analysis and decsion making. I got a msg that your connection has been closed. I don’t want the code to sleep. Is there anyway I can trick the server and keep subsribing without ..

Read more

I try to get the data from within the <script> tag but ‘model_data’ return None. When I run the code I get the error: model_data = model_data.group(1) AttributeError: ‘NoneType’ object has no attribute ‘group’ What is wrong here? html_doc = """ <script> var modelData = { "hlsUrl": "null", "account": "4LH7J44IYPAGEZEY6E3UL" } </script> """ soup = ..

Read more

The following is the code I wrote: def comb(self, rows, cols): return [s+t for s in a for t in b] if rows & columns values are rows = [‘abc’,’efg’] cols = [‘123′,’456’] expected output was [‘abc123′,’abc456,’efg123′,’efg456’] program output was [‘a1’, ‘a2’, ‘a3’, ‘b1’, ‘b2’, ‘b3’, ‘c1’, ‘c2’, ‘c3’] I am new to python programming. ..

Read more

yea i read the docs https://docs.anaconda.com/anaconda/install/uninstall/ anaconda3 has been installed to my ROOT, and running sudo rm -rf /anaconda3 doesnt do anything beside ask for password… why? why does anaconda-clean –yes do nothing besides make MORE anaconda files? i tried removing ‘export PATH="/USERS/dumbass/anaconda3/bin:$PATH" from my .bash_profile like it says in the docs but yea nothing. ..

Read more

I’m trying to redirect to another page but Flask isn’t redirecting return redirect(url_for(‘eventCreated’, eid=event.eid)) The function: @app.route(‘/eventCreated/<eid>’, methods=[‘POST, ‘GET’] def eventCreated(eid): if request.method == ‘GET’: specific_event = classes.FunctionEvents.from_db(eid) code = specific_event.code return render_template(“EventCreated.html”, event_code=code) The Python rum terminal says: “GET /eventCreated/0 HTTP/1.1“ 200 – However I am not redirected to the new page. Any help ..

Read more