Comments (3)
I'm currently working on the v3 so I won't push correction for now, what you can do is
- At
C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\site-packages\sterra\filerra.py, line 57
replace this
w.write(','.join(self.dict_keys)+'\n'+"\n".join([",".join([str(v).replace('\n','</b>').replace(',','</c>') for v in d.values()]) for d in self.list]))
- By that:
w.write(','.join(self.dict_keys)+'\n'+"\n".join([",".join([str(v).replace('\n','</b>').replace(',','</c>') for v in d.values()]) for d in self.list]), encoding="utf-8")
Tell me if it works or not
from sterraxcyl.
Could you send the full traceback please ? I think it is probably a dumb encoding not specified error as described here, but I want to be sure
from sterraxcyl.
Could you send the full traceback please ? I think it is probably a dumb encoding not specified error as described here, but I want to be sure
Traceback (most recent call last): File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\Scripts\sterra.exe\__main__.py", line 7, in <module> File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\site-packages\sterra\core.py", line 432, in main ret = globals()[module.upper()](**kwargs) File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\site-packages\sterra\core.py", line 89, in EXPORT scrape(t,l) File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\site-packages\sterra\core.py", line 59, in scrape exporter(_=_, List=__a1List, file_path=file_path, Format=Format, **{"username":username,"target":targlist})() File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\site-packages\sterra\filerra.py", line 20, in __call__ getattr(self,self.Format.upper())() File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\site-packages\sterra\filerra.py", line 57, in CSV w.write(','.join(self.dict_keys)+'\n'+"\n".join([",".join([str(v).replace('\n','</b>').replace(',','</c>') for v in d.values()]) for d in self.list])) File "C:\Users\fishy\AppData\Local\Programs\Python\Python39\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0] UnicodeEncodeError: 'charmap' codec can't encode characters in position 397-398: character maps to <undefined>
from sterraxcyl.
Related Issues (20)
- Got error for export HOT 2
- Export Does not work with Python 3.5 3.7 3.8 or 3.9 (did not test others) HOT 4
- bunch of followers that i can't export HOT 3
- LoginError: Invalid sessid HOT 2
- Invalid sessid HOT 3
- LoginError: Invalid sessid format HOT 2
- KeyError: 'The input list must contain (at least) the key "id"' HOT 4
- Delay information HOT 5
- Call Sterra commands directly from python HOT 4
- Doesn't work when built
- Call sterra directly from python (#2)
- Rate Limit Error although followers extraction is completed HOT 8
- can i scrape only business email? HOT 1
- Silent/Quiet mode HOT 1
- RateLimitError & Part not being created HOT 1
- Just calling $ sterra, i tryed to load export but doesn't work. Can you help me out?
- Read before making issues (it's short dw) HOT 1
- error HOT 1
- Error HOT 2
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 sterraxcyl.