0
votes
0answers
5 views

web2py site doesn't load all images/videos (especially larger ones)

First of all, I must say I have seen something similar to this in the web2py discussion group, but I couldn't understand it very well. I've set up a database-driven website using web2py in which ...
0
votes
0answers
11 views

Capture full html page loaded in WebKit WebView with pygtk

I'm loading a local html file inside a WebView in a gtk.ScrolledWindow. blah.html is a large html file(sizes 3000x3000) that I want to save entirely as jpg/png/pdf when I exit. I'm using python ...
0
votes
2answers
23 views

Remove selected text using regular expressions

I have a large html block and I want to remove all <img> elements, but NOT their text parts. So maybe there is something like this: <a href="http:">Some text</a> Some other text ...
1
vote
1answer
10 views

Sleek way of un/commenting out html tags in markdown

I'm trying to find a nice way of wrapping html tags in html comments without writing 5 functions and 50 lines of code. Using an example code : <section class="left span9"> ### Test ...
0
votes
1answer
36 views

Is there a better way to diaplay the django table?

I Need to display the table as http response from the following dictionary, Is my approach is correct for displying the table?? my template logic seems to be too much messy.. How to I get serial ...
-6
votes
0answers
25 views

Using POX controller with mininet [on hold]

Please guys I need some help on using POX controller with mininet for project on Software defined networking (SDN).
-1
votes
0answers
20 views

How do I stop BeautifulSoup().insert() from escaping my HTML?

I have a BeautifulSoup and when I try to use .insert() to add HTML from a string, it escapes it. How do I stop this behavior? >>> soup = bs4.BeautifulSoup("<div>hello</div>") ...
-5
votes
0answers
25 views

Python: Trees and subtrees in html [on hold]

In the parsing tree of a html file the t-route of a node ‘u' is the list of tags of nodes that goes from the root of the tree ( the node that has got ‘html’ as tag) to the 'u' node Write a function ...
0
votes
2answers
39 views

Django template image won't load (repost) [duplicate]

Image wan't load.I see o broken image icon.I use the static tag. I also tried giving the absolute path and never worked.I used the alt tag but still i can only see the broken image icon. Is the tag ...
-6
votes
0answers
46 views

Html in Python how i most do it ''the tree of parsing of one HTML file [on hold]

'In the tree of parsing of one HTML file , the t-path of a knot u is the list of the tags ,of knots that go from the root of the tree, so the knot with tag 'html', till to the knot u. Write a ...
0
votes
2answers
15 views

I can't open a HTML Customized page using Python for some reason

Here is my code so far: import os print("The Arkeyan Text to HTML Converter\n\n") w = 1 while w == 1: var1 = input("\n\nWhat would you like the title of your page to be? ") var2 = ...
0
votes
0answers
31 views

Extracting topic from a webpage

I am trying to learn some machine learning, but unfortunately unsupervised learning is not treating me well and I was hoping some semi-supervised learning courtesy of StackOverflow might be able to ...
0
votes
1answer
48 views

Python script that generate an HTML page

I'm programming a simple python script that if launched on localhost (with apache) it will generate an html page. My script is this (test.py): #!/usr/bin/python # -*- coding: utf-8 -*- import ...
-1
votes
3answers
43 views

Create an empty HTML file using Python? [on hold]

I need to create an empty html file using python. I'm new to OS module and i can't find any examples of doing it. How can I create an empty html file using python? Thank you!
1
vote
1answer
58 views

Get ID of one of multiple buttons in HTML form in Django

I'm using Django as the underlying FSM that powers a tracking website. I'm at the point where I want to allow user to change the state of the machine. The state is represented as a django-fsm field, ...
3
votes
1answer
96 views

Passing Variables In JavaScript

so I currently have a JavaScript code that I run on my iPhone to pull its Accelerometer data. What I would like to do is Pass this data to my Mac Book Pro and use the variables in A python Script. The ...
3
votes
1answer
33 views

What does “module object is not callable” mean?

I'm using the .get_data() method with mechanize, which appears to print out the html that I want. I also check the type of what it prints out, and the type is 'str'. But when I try to parse the str ...
0
votes
1answer
25 views

Symbol letters not showing in html

I have a database in Windows Azure. I have created an online shop in python/django which uses the following: {% for c in chocolates %} <th> {{ c.chocolate_name }} </th> {% endfor %} ...
0
votes
0answers
17 views

Adding a stream embed on click

I'm trying to make it so when you click a div it replaces the div with an embed (https://github.com/justintv/Twitch-API/blob/master/embedding.md). Currently what i have is this: ...
0
votes
2answers
41 views

Javascript not performing Ajax Call

I have a HTML page which i am running on localhost. I want to access some data from a Python script and use it in my HTML page, The Ajax call in the function doesn't work, If i remove it the program ...
0
votes
2answers
16 views

Generating data on server-side and sending it to client?

How would you write a webpage that would request (execution of) a python script on the server and then take output from that script and send it back to the browser? I'm currently taking a web ...
0
votes
3answers
34 views

Remove certain type of tag from HTML (without string operations) with Python and BeautifulSoup [on hold]

I have a long html file, and it has a bunch of "span" elements throughout. (Ie they begin with <span and end with /span>. Is there a way with BeautifulSoup to eliminate all of those span ...
1
vote
2answers
26 views

Parse HTML with Python and BeautifulSoup - get text both inside and outside the <a> tags

I have html with a number of tags, and then text which is outside those tags. The text I'm trying to get is in tags except the first instance, which is I guess just part of the tag. But if I try ...
1
vote
4answers
39 views

Parse 'a' tags based on attribute using Python and BeautifulSoup

Using this bit of html: <td align="left"> <a class="playerLink" href="http://bbroto.baseball.cbssports.com/players/playerpage/2000032"> Russell, Addison </a> ...
1
vote
2answers
26 views

How to use Beautiful Soup to select only one of multiple tables

I have an html document with 4 or 5 different tables. The one I want has an attribute class = "data". I can't figure out how to make BeautifulSoup return just that table. soup = ...
0
votes
3answers
48 views

Django template image wan't load

Image wan't load.I see o broken image icon.I use the static tag. I also tried giving the absolute path and never worked.I used the alt tag but still i can only see the broken image icon. Is the tag ...
0
votes
0answers
29 views

Javascript on HTML opened with Python

I have a little html page that includes this Javascript: <script type="text/javascript"> $(document).ready(function() { $("#select1").change(function() { ...
1
vote
1answer
51 views

python parse html table using lxml

I've an html table like this: <TABLE> <TR> <TD><P>Name</P></TD> <TD><P>Fees</P></TD> ...
0
votes
2answers
30 views

How do I change the date format of the html I'm scraping?

I am scraping the date off of a website. The date appears in a usable format in my browser but when I extract the data string from the website the format changes? What is the easiest way to get the ...
1
vote
2answers
49 views

Any advice for sending a request to a website from Python?

def align_sequences(IDs): import webbrowser import urllib,urllib2 url = 'http://www.uniprot.org/align/' params = {'query':IDs} data = urllib.urlencode(params) request = ...
0
votes
3answers
57 views

Renaming HTML files using <title> tags

I'm a relatively new to programming. I have a folder, with subfolders, which contain several thousand html files that are generically named, i.e. 1006.htm, 1007.htm, that I would like to rename using ...
0
votes
3answers
27 views

Delivering Python Processed data to the web

I have developed a python program that parses a webpage and creates a new text document with the parsed data. I want to deliver this new information to the web. I have no idea where to start with ...
0
votes
1answer
33 views

Send Text from HTML to Python

I am running an html page on apache2: http://localhost/test.html I want to send the username to a python script check.py, How can I do that? html: <div id="wrapper"> <form ...
-2
votes
0answers
30 views

Send JSON from python to HTML

I want to send this json reponse in the python script to a HTML page that I have created. The python script works fine. How can I transfer the data to HTML/javascript function instead of writing into ...
0
votes
1answer
34 views

Send Data from HTML to Python

I have an HTML page, and I want to use the Data in the Username field in a code in python. What methods should I use. I am not using any python framework. <body> <div id="Header" ...
0
votes
1answer
33 views

Write text under a form definition in python flask

I have a about page in my python flask website. I want to write some text under a form definition. My python app has a definition for the about page. class Aboutpageshow(flask.views.MethodView): ...
0
votes
1answer
11 views

Python : CGI application not receiving CGI variables with special characters

I am having a HTML web page that POST's a AJAX call to a Python script: /proxy/filter.py?action=ADD&value=+/sdsd/+&option=URL /proxy/filter.py?action=ADD&value=-/sdsd/-&option=URL ...
-1
votes
0answers
62 views

Increase the speed of execution of program [closed]

I am using html php and python for sentiment analysis of tweets HTML for front End Php as an Interface between python script and html Python has main sentiment analysis code it is taking much ...
0
votes
1answer
28 views

Python script embedded in HTML

I've seen many questions that ask similar things, but I felt none of them asked it in this particular way. I have a Python script that asks for an input number and attempts to calculate another ...
0
votes
2answers
53 views

How to extract href, alt and imgsrc using beautiful soup python

Can someone help me extract some data from the below sample html using beautiful soup python? These are what i'm trying to extract: The href html link : example ...
0
votes
1answer
34 views

Post form values not showing up

This is my HTML form <form method="post">{% csrf_token %} <strong>Start</strong><br /> Lng: <input type="text" id="start_lng"><br /> Lat: <input ...
-1
votes
1answer
27 views

Can you put pygame projects into an online format

A while ago, I got really interested in pygame because of the ease of coding and fun results it offered. The problem then was this: My friends use mac computers and packaging the pygame into an exe ...
2
votes
2answers
44 views

measuring a depth of a website using python [closed]

I am trying to find a way to extract the depth of a website using python. Depth of a subwebsite is equal to the number of clicks required from the main website (e.g. www.ualberta.ca) in order for a ...
0
votes
1answer
45 views

Finding a position of web images in a scrape

Is there a way to find a position (i.e. left and top offset) of an image on a website? Can it be done through web image scraping? The language I am using is Python.
0
votes
0answers
20 views

display result of python script on website developed in dreamweaver [closed]

I have developed a website using dreamweaver. I want to execute a python code that displays a pie chart on clicking the search button, What code should I add here? Search
0
votes
0answers
23 views

How to completly save an html page on a file / Python / PycURL

I wrote this function to retrieve a complete HTML page with all tags and forms: def call(): main = pycurl.Curl() main.setopt(pycurl.URL, url) h = cStringIO.StringIO() ...
1
vote
2answers
53 views

Using bootstrap for commerical site?

I'm creating a website using django and since im not that strong in html/css (i can code and create layouts, but not the ones that look professional enough) i thought i might use the Bootstrap open ...
0
votes
0answers
28 views

Using either Python or Javascript, how can I parse through a webpage and extract video urls? [closed]

I'm fairly new to Javascript, Html, and CSS but I'm pretty familiar with Python. What I'd like to do is create a script to put on a webpage of my own that will search through a different webpage, find ...
38
votes
7answers
18k views

html to pdf for a Django site

For my django powered site, I am looking for an easy solution to convert dynamic html pages (generated using django views and templates datas generated using GET forms) which also contains some graph ...
59
votes
13answers
57k views

Extracting text from HTML file using Python

I'd like to extract the text from an HTML file using Python. I want essentially the same output I would get if I copied the text from a browser and pasted it into notepad. I'd like something more ...

15 30 50 per page