Coder Social home page Coder Social logo

Comments (3)

c4software avatar c4software commented on August 17, 2024

Hi,

Are you sure you are using Python3 ?

from python-sitemap.

sebclick avatar sebclick commented on August 17, 2024

Hello,

I have this same error if I launch python-sitemap with python 2.x.

sebclick ~/Python/python-sitemap $ python main.py 
Traceback (most recent call last):
  File "main.py", line 6, in <module>
    import crawler
  File "/home/sebclick/Python/python-sitemap/crawler.py", line 85
    print(config.xml_header, file=self.output_file)
                                 ^
SyntaxError: invalid syntax
sebclick ~/Python/python-sitemap $ 
sebclick ~/Python/python-sitemap $ 
sebclick ~/Python/python-sitemap $ python --version
Python 2.7.12
sebclick ~/Python/python-sitemap $ 

It's ok with python 3.x :

sebclick ~/Python/python-sitemap $ python3 main.py --help
usage: main.py [-h] [--skipext SKIPEXT] [--parserobots] [--debug] [-v]
               [--output OUTPUT] [--exclude EXCLUDE] [--drop DROP] [--report]
               [--config CONFIG | --domain DOMAIN]

Crawler pour la creation de site map

from python-sitemap.

c4software avatar c4software commented on August 17, 2024

Hi.

Thanks sebclick. KKS161994 can you check if you are using python3?

from python-sitemap.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.