Path: csiph.com!usenet.pasdenom.info!gegeweb.org!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.003 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'python.': 0.02; 'syntax': 0.04; 'subject:Error': 0.07; 'subject:Getting': 0.07; 'meaningful': 0.09; 'okay': 0.09; 'subject:Started': 0.09; 'windows,': 0.09; 'python': 0.11; 'cmd': 0.16; 'command.': 0.16; 'guessing': 0.16; 'soup': 0.16; 'subject:Text': 0.16; 'syntaxerror:': 0.16; 'folder': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'file,': 0.19; 'version.': 0.19; 'header:User-Agent:1': 0.23; 'subject:Code': 0.24; 'environment': 0.24; 'chapter': 0.26; 'header:In-Reply-To:1': 0.27; 'dos': 0.30; "i'm": 0.30; 'code': 0.31; '"",': 0.31; '>>>>': 0.31; 'file': 0.32; 'text': 0.33; 'says': 0.33; 'guess': 0.33; 'subject:from': 0.34; 'something': 0.35; 'case,': 0.35; 'done.': 0.35; 'version': 0.36; 'words,': 0.36; 'done': 0.36; 'next': 0.36; 'starting': 0.37; 'nov': 0.38; 'to:addr:python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; 'new': 0.61; 'save': 0.62; 're:': 0.63; 'more': 0.64; 'answer.': 0.68; 'beautiful': 0.68; 'invalid': 0.68; 'received:74.208': 0.68; 'received:74.208.4.194': 0.84; '2013,': 0.91; 'navigate': 0.91 Date: Thu, 11 Dec 2014 14:34:55 -0500 From: Dave Angel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 MIME-Version: 1.0 To: python-list@python.org Subject: Re: Text Code(from 'Getting Started in Beautiful Soup' re: cd Soup , returns 'Syntax Error, invalid syntax' References: <4a9fc357-d743-471b-87e1-ef3573221816@googlegroups.com> In-Reply-To: <4a9fc357-d743-471b-87e1-ef3573221816@googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Provags-ID: V02:K0:8lA5qxkmzLGL0wlLtySP42kuwh7yI4LBEfxaATRfEUB bc6iURlmrL1CMLTK3wxz4tO0hwcspbCJY3DREg3zY81pjWrEuh beYDLdXjS+KBMri4JiB7yl7+egW0vWPf+3zAEF9kqZBfNeJuT/ RDdf1f4YXRAd56Eo4SsAXKNnwhhJ+xrxteEa6m9yV/jDow4UWE HZ+fYhZd06Uc4Wi5MkprUQU8+nJEm9etEmkUgurQEXSEtzYRx8 k0siCTAEbY8n5gzTXUpruLBx4GVcKOy8C1T1l01UeUKx5XN+yx NGxHXis7LD5gMVGAmsGRemFCCgOeHU3qaJqwzoNn+Dv8Qd6D2O 1tQmGD5lZ+nXoYd+IEq0= X-UI-Out-Filterresults: notjunk:1; X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 34 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1418326508 news.xs4all.nl 2895 [2001:888:2000:d::a6]:37231 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:82376 Please give your environment when starting a new thread. Python version and OS version. In this case, I'm guessing Windows, because I have to guess something to give a meaningful answer. On 12/11/2014 02:21 PM, Simon Evans wrote: > At the start of Chapter 3 of 'Getting Started in Beautiful Soup' it has said to create a html file, 'ecological > > pyramid.html' - which I have already done re: > > ---------------------------------------------------------------------------- > and ran it okay in 'Explorer', and text then says to save it to a folder named 'Soup' which I have done. > On the next page (30) it says to navigate to that folder with the following code to the python console :- > > cd Soup > > however console rejects that code with the following return: - > ---------------------------------------------------------------------------- > Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit (Intel)] on win > 32 > Type "help", "copyright", "credits" or "license" for more information. >>>> cd Soup > File "", line 1 > cd Soup > ^ > SyntaxError: invalid syntax >>>> cd is not a Python "command", it's a cmd command. In other words, you type that in your DOS box before starting Python. -- DaveA