-2
votes
0answers
19 views

Extract data from HTML table

I need to extract the station names from the following html file and then write the output to a .csv file. I am new to python and don't know how to do this. It looks fairly simple. <html ...
0
votes
0answers
27 views

Parse HTML style text annotations to a list of dictionaries

Currently I have the following problem: Given a string "<a>annotated <b>piece</b></a> of <c>text</c>" construct a list such that the result is ...
-1
votes
0answers
31 views

Javascript issues on Python

I'm pleased to be here and I hope that somebody of you could solve this issue: I'm developing a portal for students for a university assignment. I've got an interactive dynamic navigation menu ...
0
votes
3answers
31 views

getting html form data into django class based view

I have created a Class view in views.py of the django application. class HelloTemplate(TemplateView): template_name = "index.html" def get_context_data(self, **kwargs): context = ...
2
votes
3answers
32 views

The html content that I'm trying to scrape only appears to load when I navigate to a certain anchor within the site

I'm trying to scrape a certain value off the following website: https://www.theice.com/productguide/ProductSpec.shtml?specId=6747556#data Specifically, I'm trying to grab the "last" value from the ...
0
votes
1answer
46 views

Links stopped working — jquery issue?

I have links in a dropdown menu bar for navigation around my site. Yesterday, they worked fine. Today, they the menus no longer dropdown and the links that do display (in the headers) don't function ...
0
votes
0answers
14 views

Python pisa/xhtml2pdf messy rendering

In a django project, I want to generate an html page from a view and convert the html/css generated to pdf. I am using xhtml2pdf for this ...
0
votes
1answer
21 views

PySide. Extracting DOM HTML. AccessNetworkmanager

I need to extract all calendar data from page like "http://www.dukascopy.com/swiss/english/marketwatch/calendars/eccalendar/". Firstly - to extract all html with inner dom. Using eclipse and Python ...
1
vote
2answers
42 views

Counting phrase frequencies in an html file

I'm currently trying to get used to Python and have recently hit block in my coding. I couldn't run a code that would count the number of times a phrase appears in an html file. I've recently received ...
-4
votes
0answers
31 views

Example of a webpage created by a single python file [on hold]

I'm learning how to code with python and am starting to dabble in creating html with it. I really pretty lost in understanding in how to do all of this and was wondering if someone could provide a ...
0
votes
3answers
27 views

python bottle - why is the simple template engine turning my dict into a list?

I'm calling the template in the following route: page = {"name": "welcome", "title": "Welcome", "icon": "/images/welcome-icon.png"} contentOnly = request.query.get("contentOnly") formRedirect = False ...
1
vote
1answer
54 views

Get 2 sections from html in python

I have html that looks like this <tr><td align="center" class="listas" colspan="0"> <div id="b8b7c9523733e026bf89de9b3cf8f73811ddb579" style="display: none;"> <table ...
-2
votes
0answers
12 views

CGI python script which lists the sub directories in a dropdown menu [on hold]

I'm looking for a CGI python script which lists the sub directories in a parent directory and displays it in a html Dropdown menu. Thanks
-2
votes
0answers
22 views

HTML files into searchable database? [on hold]

So i have a bunch of html files that are scan reports for a one of my pentesting classes, each html file is for an ip on the network. The HTML was generated by xsltproc using the nmap xml format for ...
0
votes
0answers
28 views

How to send automated emails with information extracted from excel sheets that have a link to a google form that needs to be filled out [on hold]

So, I have a google form and I'm having many number of people fill out their details which will obviously be stored in my google drive in a spreadsheet. Now, I need to write a script that will extract ...
1
vote
1answer
21 views

Django_tables2: CSS isn't working even though it's registered

I copied the screen.css that has the paleblue class shown in the example on the django_tables2 website. I placed it in my application in the static/css folder and when I call it from my .html it ...
1
vote
1answer
36 views

How to prevent BeautifulSoup from converting entities?

I have a BeautifulSoup Tag named keyword, and when I use keyword.decode(formatter=None) to get the html text, I got this <pre><span id="VAL(<>)"><span ...
0
votes
1answer
21 views

Automatic “<!--: spam” tag from Apache?

i have a realy strange problem. I try to display a relativly huge table (ca. 100 rows) from a database with a python script. It worked perfectly on my computer via XAMPP but when i test in on my ...
1
vote
2answers
21 views

How to choose the value and label from Django ModelChoiceField queryset

I was trying to create a django form and one of my field contain a ModelChoiceField class FooForm(forms.Form): person = ...
0
votes
3answers
39 views

Django user is not authenticated when template is extended

How to keep data_dictionary always in the template ? (Maybe not the right question) . User should always be authenticated Explained: This is the base template that is extended by all other templates. ...
0
votes
2answers
39 views

How to pass a variable from python Django to HTML template

I want to pass a variable from python Django and use it inside the <img> tag. How can I do it? Here is my code. Python- render(request, 'dashboard/dashboard.html', {"variable_int" : 12}) ...
0
votes
3answers
36 views

django template form shows the result in another html file

I want my search result to be displayed in another html file. I have my template as follows: <html> <head></head> <body> <div id="div1"> {% ...
2
votes
1answer
26 views

Django Autocomplete Light Widget Changing Form Field Name

I have successfully set incorporated autocomplete light into my django project. I am using it on a form and it is working as expected. I followed the quick start tutorial at ...
1
vote
0answers
25 views

Parsing and removing table entries from HTML with Python

I currently have a downloaded HTML page that is 300MB in size. It cannot be opened right now. The file creates a multiple entries with data relating to files within the table. A sample is below: ...
0
votes
2answers
40 views

A little clue for some basic HTML parsing with BSoup 4?

I'm totally new at this, but been trying to parse some HTML with BeautifulSoup for 2 days without any real, good results. One time I manage to remove all HTML and just keep text as I want it, but only ...
0
votes
1answer
34 views

Javascript ajax wait until file is changed

I'm programming an website to control my Raspberry Pi robot. I'm driving two stepper motor using .py script I call it: sudo ./GPS.py forward 100 30 Fist argument is way to go, second is how many ...
0
votes
1answer
57 views

Google App Engine: Retrieving data from database

I am trying to build a simple blog application to use the skills that I learned from Udacity so far. However, I am having trouble retrieving data from the database and displaying it for the user. Now, ...
0
votes
0answers
39 views

Development stack for Kinect skeletal tracking + HTML front-end + OS events

I need to develop a Windows application which... has access to joint positions from a Kinect skeleton stream; can trigger OS events like keyboard key presses and mouse movements/clicks; does the ...
0
votes
0answers
27 views

django-bootstrap-toolkit for my contact page

I'm new to django. I'm using django-bootstrap-toolkit for my contact page. It works fine when I test it locally. But I'm getting an error on my hosting server, while all other pages work just fine. ...
0
votes
2answers
48 views

HTMLParser - only extract img tag

I am using HTMLParser to extract an image url from a simple html text like this: html = <p><span style="font-size: 17px;"><span style="color: #993300;"><img style="margin-right: ...
-1
votes
0answers
36 views

how to put html-code in a function? [closed]

I am a beginner in programming, and I'm about to make a website. I have studied other people's codes and my guesses is that one way to write html is to make a function for html and than get than ...
0
votes
0answers
27 views

Google App Engine: Database entries not being displayed

I am trying to model a sample blog application using python in Google Application. Now, I have a couple of problems in my application. There's no bug as such, but things aren't quite working as they ...
0
votes
1answer
30 views

python inconsistent behaviour reading content from EU web page [duplicate]

I'm trying to extract content from the following EU page: http://europa.eu/about-eu/countries/member-countries/greece/index_el.htm and tried opening the page with urllib2 and mechanize, but I get ...
1
vote
1answer
43 views

View tsv table as html with row and column titles fixed

I'm trying to visualize a large table in HTML. The origin is a tsv table. I looked for packages to do that automatically but in the end I managed to create a python code that creates the required HTML ...
0
votes
0answers
53 views

Why the browser display the entity name?

import urllib2 url = "http://www.reddit.com/r/pics/hot.json" hdr = { 'User-Agent' : 'super happy flair bot by /u/spladug' } req = urllib2.Request(url, headers=hdr) html = urllib2.urlopen(req).read() ...
1
vote
1answer
50 views

href static files Django STATIC_URL and STATICFILES_DIRS

My settings.py BASE_DIR = os.path.dirname(os.path.dirname(__file__)) STATIC_ROOT = os.path.join(BASE_DIR, "static") STATIC_URL = '/static/' In my html page is href to my files using {% load ...
0
votes
2answers
36 views

STATICFILES_DIR and STATIC_URL for modular templates

I am learning Django and trying to create modular templates and I am coming across this issue In my Developer tools I am getting this error: GET http://127.0.0.1:8000/static/assets/css/default.css ...
0
votes
0answers
19 views

How to prevent escaping sequence when I set Content-Type to application/json?

My API need to return something with type json,so I set the Content-Type to application/json? This is my url,I don't want the characters to be escaped. I use webpy framework. def GET(self): ...
0
votes
1answer
23 views

django endblock syntax error

I am currently following a Django tutorial and I believe that I followed it precisely however I am getting this syntax error. It is saying that {% endblock %} isn't working. Not really sure why this ...
0
votes
0answers
23 views

What's a safe long polling timout interval for http requests?

I'm implimenting a chat system with a python backend. The messages are feed by a Queue object. If you don't know how this works it basically has a put and a get method and is thread safe. If there is ...
0
votes
0answers
33 views

how to parse html file with xml data

I have a html file on a server that holds this data below, which looks like xml data. I want to parse through it and retrieve the image revision. How do I do that? <?xml version="1.0" ...
1
vote
2answers
36 views

Stuck in an Exception loop

I am parsing through the HTML returned from a list of links. When I reach a certain point in each HTML document I raise an Exception. import urllib2, time, from HTMLParser import HTMLParser class ...
0
votes
1answer
34 views

Python/JavaScript/HTML create a computer network diagram dynamically

I want to create a computer network diagram dynamically on UI, with the network diagram having switches, routers and other devices and these devices are connected with links and i need to label these ...
1
vote
0answers
22 views

Modified select in python django with icon

I have a problem regarding python django templates and kinda lost on how to do that. Can somebody help me on how im going to adjusting the css for {{ poll_form.category }} (which is options list) and ...
1
vote
1answer
22 views

Could not parse the remainder: '[0]' from 'item[0]' Django

I am trying to make a table with values I get from a list but I keep getting the error "Could not parse the remainder: '[0]' from 'item[0]'" whenever I try to access an item in a list inside the main ...
1
vote
2answers
43 views

django poplulate html form

How to set the html form fields without using django-forms.
1
vote
1answer
17 views

extract specific information from HTML by python

I am trying to extract information such as prices and vendors from Amazon. The way I do this now is to find the key words such as price and then to find the information I want. The problem is if the ...
0
votes
1answer
26 views

Mining Gutenberg project, can't creat access to subdirectories

I'm a trying to create a loop for accessing Gutenberg Project Mirror Archive with a Python script. The problem I'm having is that I can create the propoer loop since, the subdirectories change. For ...
1
vote
1answer
27 views

Extracting Form data from Checkboxes in Python

I was wondering on how to extract HTML form data in Python from checkboxes with the same name. For instance, <label><b>Optional Additions:</b></label> <br> <input ...
1
vote
1answer
24 views

Beautiful Soup: Copy a table to a new file

I'm trying to use Beautiful Soup to isolate a specific <table> element and put it in a new file. The table has an id, ModelTable, and I can find it using soup.select("#ModelTable") ("soup" being ...

15 30 50 per page