Comments (3)
Hi,
Are you sure you are using Python3 ?
from python-sitemap.
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.
Hi.
Thanks sebclick. KKS161994 can you check if you are using python3?
from python-sitemap.
Related Issues (20)
- sintax error HOT 1
- Change name project HOT 2
- No URLs found HOT 7
- Stop and continue HOT 1
- Handling more than 50,000 URLs HOT 4
- Add package to PyPI HOT 5
- RuntimeError: Event loop is closed - with > 1 workers HOT 6
- Feature Request: Limit per category/section the number of URLs to parse
- AttributeError: 'NoneType' object has no attribute 'geturl' HOT 4
- Python 3.9.6 support? SyntaxError HOT 5
- Exclude canonicalized pages
- URL UnicodeEncodeError
- urls not saved to sitemap.xml HOT 2
- Windows and/or Python 3.7.2? HOT 2
- How to add hreflang tags HOT 2
- crawling depth setting
- Alphabetize URLs HOT 1
- How to exclude noindex page
- Option to specify bot for robots.txt HOT 2
- iframe contents ignored
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from python-sitemap.