1
vote
1answer
17 views

Using Python FTP Server (pyftplib) - create HTML file on log in

I have a FTP server working great using Python and the pyftplib library (https://code.google.com/p/pyftpdlib/). I would like to, on login (either anonymous or user), create a html file reflecting the ...
0
votes
1answer
29 views

BeautifulSoup4 : Ampersand in text

I have a problem using BeautifulSoup4... (I'm quite a Python/BeautifulSoup newbie, so forgive me if i'm dumb) Why does the following code: from bs4 import BeautifulSoup soup_ko = ...
2
votes
2answers
53 views

How to execute jquery on page update

I have used jquery multi-select to render my django app muslitiselect in an user friendly way. When My Page First render I have putted script given below on page, this script bind any element having ...
0
votes
1answer
35 views

Page redirect to next page

I am using a map api in my app.For selecting marker, button named "Add marker" and "Refresh map" for refresh map.I am facing the here. After saving the data,the save button will redirect to next ...
0
votes
1answer
57 views

Identify Webpage

Hi I am trying to parse a webpage in Python. This webpage is in a restricted area so I can not give the link. In this webpage you can do queries which then are published in a table which is added on ...
0
votes
1answer
27 views

Searching for multiple kinds of tags at once using Beautiful Soup 4

I am trying to use find_all to get all of the instances of several tag types (I don't care about class), in order, for a bit of soup using bs4. I want to do something like this: ...
-1
votes
0answers
24 views

What technology use to web without recharge of content? [closed]

I'm learning Python + Django for web pages, and the web that will be small and the want to do without being completely reloading the web (such as flash web). As the small web, a good technique would ...
0
votes
0answers
11 views

Pygame PGU - Inserting Text into a DIV/Textarea/etc

So I'm trying to make an app using the PGU library for Pygame. I'm using the html module to render html, at the moment I have a div and an input. I would like to be able to insert text into the div ...
0
votes
1answer
361 views

How to run a python cgi web server in windows

I'm wanting to run a very simply python based server in a windows environment, to test CGI scripts. I want to do this in windows, but run ultimately in a unix environment. So far, I have a simple ...
4
votes
6answers
7k views

Python code to remove HTML tags from a string

I have a text like this: text = """<div> <h1>Title</h1> <p>A long text........ </p> <a href=""> a link </a> </div>""" using pure Python, with no ...
7
votes
2answers
1k views

More than one static path in local Flask instance

Is that possible to add more static paths for my local dev Flask instance? I want to have default static folder for storing js/css/images files for the site and another folder, e.g. designs to keep my ...
6
votes
5answers
8k views

Django view returning json without using template

This related to this question: Django return json and html depending on client python I have a command line python api for a django app. When I access the app through the api it should return json ...
2
votes
2answers
1k views

Remove all javascript tags and style tags from html with python and the lxml module

I am parsing an html document using the http://lxml.de/ library. So far I have figured out how to strip tags from an html document In lxml, how do I remove a tag but retain all contents? but the ...
1
vote
3answers
2k views

Convert HTML to PDF in python on Google App Engine

I have had a look at this thread: http://stackoverflow.com/questions/327700/how-to-dynamically-generate-a-pdf-from-googles-appengine I know we can use ReportLab, however, I am not sure how i can ...
9
votes
8answers
5k views

extract contents of regex

I want a regular expression to extract the title from a HTML page. Currently I have this: title = re.search('<title>.*</title>', html, re.IGNORECASE).group() if title: title = ...

1 2 3 4 5 133
15 30 50 per page