Tagged Questions
-2
votes
0answers
46 views
Is it possible to scrape data from javascript
I want to build a scraper that allows me to retrieve data rendered with javascript. Look at this page for example
...
0
votes
0answers
15 views
Python: download page which use javascript [duplicate]
I want to download a web page and save it as a html file , so I used urllib2 as:
urllib2.urlopen(url).read()
And it works good, provided that the web doesn't use javascript.
How can I download a ...
0
votes
1answer
16 views
How to convert python timestamp to javascript YYY-MM-DDTHH:MM:SS.302325
How can I convert a python timestamp with javacript
from 2014-07-28T20:45:04.271935
to 1.6.2014 (20:45)
I tried to use the builtin parse function from javascript, but it seems to mix up things..
...
0
votes
1answer
23 views
Twitter Photo Card Pulling
I'm trying to make a Twitter Photo Card which uses HTML meta Tags.
The first problem is, the tag looks something like this
<meta property="twitter:image" id="photo" ...
0
votes
0answers
7 views
Display mpld3 chart in HTML with django
I'm using mpld3 to display matplotlib charts inside an HTML page via django. I use mpld3.fig_to_dict method to produce a string from a matplotlib figure and save it in a JSON variable .
I don't know ...
1
vote
1answer
12 views
Pass a request to a DJANGO REST api using Angular and then return those results in a DJANGO view
Ok, so basically what is happening is I have a search input on my index page. The user types something in the search input, and that is sent to the Django REST api which returns the data in JSON ...
1
vote
1answer
18 views
Python Parsing HTML Table Generated by JavaScript
I'm trying to scrape a table from the NYSE website (http://www1.nyse.com/about/listed/IPO_Index.html) into a pandas dataframe. In order to do so, I have a setup like this:
def htmltodf(url):
page = ...
0
votes
1answer
27 views
Getting data from python in Javascript and AJAX
I have some issues retrieving info from python and try to show the data in a html page
I get the date from a python script (data.py)
import cx_Oracle
import json
lst_proveedores=[{}]
conn_str = ...
0
votes
0answers
24 views
Populate browser text field from excel file
I'm a bit out of my area of expertise here and I was hoping I can get nudged in the right direction.
I have a large excel file containing part information and I would like to feed this information ...
0
votes
1answer
28 views
How to transfer int variable from python to javascript? [on hold]
I am currently doing a project wherein latitudes and longitudes are stored in a MySQL database. I plan to use these coordinates to create an overlay on top of google maps. to do that I require the ...
0
votes
0answers
10 views
Supporting custom Selenium IDE commands in a formatter
I have managed to add custom commands to Selenium IDE, but am having difficulties supporting these in a format, namely, an extended version of the Python WebDriver format. In the script generated when ...
2
votes
1answer
28 views
Dictionary data ito d3 line chart - Django Python in server side
I have a dictionary object of date time and value. I have set up my axis accordingly in the following formats;
var parseDate = d3.time.format(""d %b %Y %H:%M:%S %p").parse;
var x = ...
0
votes
0answers
51 views
Python vs. Javascript speed difference [on hold]
I solved the same Project Euler problem using Javascript and Python. Both solutions essentially use the same logic. The Javascript solution is MUCH faster when I run it in my terminal using node. How ...
-1
votes
1answer
24 views
Read data from python in javascript [on hold]
I will explained my case:
I have some python files who retrieve data from an oracle database and create a json object
But I don't know how to read this json in javascript.
I trying using getJSON and ...
1
vote
2answers
19 views
mac os x python/JavaScript IDE where I can use break points
I looking for python/JavaScript IDE where I can put breakpoints. Currently I'm using coderunner but I can not put break points. I'll really appreciate you recommendations
-1
votes
0answers
18 views
3D vector drawing embedded in website [on hold]
I would like to know if there's a way to embed a 3D cartesian plan so I can draw vectors. Is there a tag for this, or a javascript/jquery function, or a way to embed a python module.
Thanks!
0
votes
1answer
26 views
Selenium python javascript popup
I am using Selenium in Python to navigate to a website and fill in a form. There is a section of the code that let's you click on a button to open a pop-up node tree using javascript. I am able to ...
-3
votes
0answers
20 views
Python/Javascript live streaming application [on hold]
I recently came accross a few articles that made suggestions for frameworks/api's i could use to try to build an application almost identical to Twitch.tv that im doin for a side project.
The most ...
0
votes
2answers
31 views
Trouble Using JavaScript to Insert HTML Img Tag
I'm using the following code:
var oDiv = document.createElement ("DIV");
oDiv.innerHTML='<img src="{{ url_for(\'static\', filename=\'images/bubble4.png\') }}">'
to try and insert an image ...
1
vote
0answers
15 views
How to integrate curl.js with server-side jinja2 templating
I have a Python-based Flask web application that uses Jinja2 to perform templating on the server-side.
I would like to improve my Javascript and CSS loading by using curl.js to load JS and CSS ...
0
votes
1answer
31 views
Javascript twos complement
The following python code seems to work very well to het the twos complement of a number:
def twos_comp(self, val, bits):
if (val & (1 << (bits - 1))) != 0:
val -= 1 << ...
2
votes
1answer
31 views
Django vote button with ajax
I have this url:
(r'^oyla/(\d+)/$', oyla),
I have this view:
@login_required
def oyla(request, id):
if request.is_ajax():
entry = Entry.objects.get(pk=id)
entry.points += 1
...
1
vote
2answers
33 views
Modal Form Submission without refresh
I have a modal window that pops up when I want to add a new project to my dashboard. I have gotten it to work with jquery post however, I cannot prevent it from refreshing. What I want to do is after ...
0
votes
1answer
34 views
using key presses instead of buttons in django forms
I have a website that allows text entry, voting on entries, and live tables of the voted entries:
http://www.highscore.a2hosted.com/index/
This is coded in django. I managed to get a text entry and a ...
-3
votes
0answers
42 views
I have to create a directory so that non-coders can input info [on hold]
Ok I have to create a directory similar to this one, but the information would have to be able to be entered in a wysiwyg editor. How would you go about doing that? and what languages would you use? ...
-3
votes
0answers
30 views
Opening cmd on client side using button in html webpage? [on hold]
I am creating a web UI based on HTML, JavaScript and php. My requirement is to open a command prompt in client side by a click of a button and that cmd should run a telnet session on an IP (the ...
0
votes
2answers
42 views
Call python FUNCTION from javascript
this question have been asked numerous times, I know and I'm sorry if by ignorance I didn't get the answers.
I have a hosting plan which doesn't allow me to install django, which was really nice to ...
0
votes
0answers
24 views
Filling dialog parameters from Django/Python app
I'm creating a dashboard using Django that intends to simplify operation for several other (web) applications created by third parties, by redirecting the user to specific links on that applications ...
2
votes
0answers
39 views
Dynamically changing chart data using Django and Highcharts?
How would I go about allowing a user to change the status of a graph and updating it on the page?
For example, allowing a user to adjust the size of a graph without having to rePOST.
I am using ...
-1
votes
1answer
22 views
Filter logic like in reports
This kind of filter logic : (1 and 2) or 3
can be implemented in Python or Javascript, any ideas? I didnt found nothing google.
I mean , user will type filter in textarea, need to check filter's ...
0
votes
0answers
33 views
How to send a POST request with JavaScript XMLlhttpRequest to Google App Engine?
I would like to send a JavaScript XMLlhttpRequest to a .py script on Google App Engine. But I am not looking for a jQuery solution
HTML:
<form action="javascript:sendMessage();">
...
0
votes
0answers
25 views
Selenium operation in different tab (Python or C++)
I have an issue with Selenium.
I have a scenario:
Users opens a browser via script:
driver = webdriver.Firefox()
driver.get ("some_startpage")
Then USER opens a new tab (the person clicks, it is ...
1
vote
1answer
19 views
Django/Python/toDataURL return a response with the string from toDataURL
I have saved in a database a string return by the javascript method toDataURL. An exemple is available here: http://pastebin.com/0Qu8rngD
I need to return the image in a django response. Something ...
0
votes
1answer
35 views
control java instance by (java script) interfaces from shell script?
I am absolutely new to java and am referring to a program energy2d. Its source code is here.
It is run as an embeded applet(see at the website link in github, as I am not allowed to post more then ...
0
votes
0answers
9 views
Specify Content-Type in JS Post Request to fix JSON Decode Error
I have a JavaScript/Python web app that functions as it should on my colleague's computer, but I encounter a JSON Decode Error when I serve my git cloned copy of the program.
A function in the form ...
0
votes
0answers
16 views
How can I merge SVG countries into a larger region in JVectorMap
I'm using JVectorMap to display an interactive world map on my site, where pop-up information is displayed about certain countries when you hover over them - very similar to the demo on the homepage ...
0
votes
2answers
25 views
Are most http requests synchronous by default?
Are most functions for http requests synchronous by default?
I came from Javascript and usage of AJAX and just started working with http requests in Python. To my surprise, it seems as though http ...
0
votes
0answers
27 views
Calling Python function from Javascript, pass output to d3? [duplicate]
I have written some code in Javascript with d3 that will make a series of charts from data represented by an array. Easy enough. However, I am going to ultimately need to generate the array itself by ...
0
votes
1answer
20 views
Django - Load template with jQuery into variable
I'm working with a client that has a view that, after a user logs in, this view loads a template, that dynamically draws a canvas with jQuery, and generates an image copy of the canvas.
They want to ...
-5
votes
1answer
28 views
Accesing Excel file from Google Chrome [closed]
How to access an excel file from a javascript running on Google Chrome and hosted in simple python web server.
Thanx in Advance
Regards
Shivam
1
vote
1answer
24 views
Python Beautiful Soup scape page containing Java Script
I am trying to scrape from this page:
http://www.scoresway.com/?sport=basketball&page=match&id=45926
but having trouble getting some of the data.
The second table on the page contains the ...
-1
votes
1answer
21 views
Need example embedding plot with bokeh
Could anybody give me a brief example of how to use bokeh's embed tool? I've had a little bit of luck with the create_html_snippet() but I need a method that will support the use of hovertool for a ...
-1
votes
0answers
32 views
Django template tags not updating
I've got a django webpage that shows some data based on a date range tracked by a django template tag, but when I try to return that tag's value back to the view for an ajax call, the tag's value ...
-2
votes
1answer
22 views
How do I send parameters from html code to ajax?
I'm using Flask, html and Ajax.
html code:
<script type=text/javascript>
$(function() {
$('a#calculate').bind('click', function() {
$.getJSON('/_add_numbers', {
...
0
votes
0answers
21 views
For ‘Book’ form add the ability to add category on-the-fly
For example I'm adding books now and I want there is a section to choose which category the book is from but since I don't have the category I'm looking for so I would like to create something like ...
0
votes
1answer
19 views
Morris.js displaying incorrect line graph with Django template array
I recently heard of Morris.js and attempted to include a line graph in a website I was working on. However, whenever I feed elements from my dates array to the data component of Morris.line(), the ...
0
votes
1answer
30 views
How to load slow parts of a website later? [closed]
I have a web application, where a user request can trigger a calculation which takes some time. I would like to deliver the skeleton of the website immediatly, while i deliver the slow parts later. ...
0
votes
1answer
57 views
“The owner of this website has banned your access based on your browser's signature” … on a url request in a python program
When doing a simple request, on python (Entought Canopy to be precise), with urllib2, the server denies me access :
data = urllib.urlopen(an url i cannot post because of reputation, params)
print ...
0
votes
0answers
20 views
Is there a Chinese Full Text Search Engine in nodejs
I plan to add a Chinese full text search engine feature into my web application. However, I failed to find any existing solution for this. There are search engine solution in nodejs, but Chinese is ...
2
votes
2answers
49 views
Is there an __repr__ equivalent for javascript?
The closest I got to something close to Python's repr is this:
function User(name, password){
this.name = name;
this.password = password;
}
User.prototype.toString = function(){
...