3

I'm a complete newbie to scraping, and I'd like to get some data from here : http://fse.vdkruijssen.eu/ferrylist.php

I'm using Python 2.7 as it is the only language I know something about. I've tried and searched a lot, but there is a simple form to fill before accessing the data that I can't go through... No login required.

This is what I have so far:

import requests
from bs4 import BeautifulSoup

url='http://fse.vdkruijssen.eu/ferrylist.php'
params ={'selectplane':'Cessna 208 Caravan','submit':''}

response=requests.post(url, data=params)
soup = BeautifulSoup(response.text, 'html5lib')
print soup

Any help would be highly appreciated... Thank you !

EDITED & SOLVED : thank you 宏杰李!

3
  • your code gives HTML with results - so now learn how to use BeautifulSoup to search data in HTML. Commented Feb 5, 2017 at 20:48
  • the code is fine, what's your question? Commented Feb 5, 2017 at 20:49
  • Please edit your question to add exactly what your problem is. Don't just ask it in the comment. That way you will get your answer faster. Commented Feb 5, 2017 at 23:24

1 Answer 1

1
params ={'selectplane':'Cessna 208 Caravan',
        'submit':''}

You missed a param:

enter image description here

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you for this. Now beautifulsoup is raising a looping error

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.