URL: https://www.overclockers.at/coding-stuff/oc-at-as-a-filesystem-o_248122/page_1 - zur Vollversion wechseln!
sers
Ich wollt mir mal fuse anschauen und brauchte einen 'grund'; drum gibts jetzt ocatfs!
python3 mit fusepy und beautifulsoup zum oc.at scrapen
Features:
just cool!
nice
Find ich supernice
danke
geil waers wenn man sich mit cookie einloggen und mit
posten koenntCode:echo "test message" >> oc-at-as-a-filesystem-o_248122
geil
Nice!
5 Sterne von mir und einer auf GitHub .
das is ehrlich eines der wunderbarsten sachn die ich die letzten jahre sehen durfte.
Sehr geil!
Mir fällt jetzt keine sinnvolle Anwendung davon ein, aber sehr geil!
Is eher for the lulz als irgendwie sinnvoll.
Aber es is arguably alles besser wenns ein filesystem is
Das war mir schon klar, gibt ja viele sinnlose Dinge, die trotzdem geil sind
!!Zitat von böhmiSehr geil!
Ich wollts grade auf CentOS 6.8 Linux und FreeBSD 11.0 UNIX testen, aber no luck.. Kann leider selber kein Python, aber hier is, was er ausspuckt:
CentOS 6.8 Linux x86_64:
FreeBSD 11.0 UNIX x86_64:Code:$ ./test_ocatfs.py ./test_ocatfs.py ./test_ocatfs.py: line 1: from: command not found ./test_ocatfs.py: line 3: syntax error near unexpected token `(' ./test_ocatfs.py: line 3: `def test_get_threads():' $ ./ocatfs.py ./ocatfs.py: line 4: from: command not found ./ocatfs.py: line 7: from: command not found ./ocatfs.py: line 11: syntax error near unexpected token `(' ./ocatfs.py: line 11: `class Thread(object):' $ python --version Python 2.6.6
Also für Python3 hab ich offensichtlich keine fuse Module, und Mit 2.6 und 2.7 will's irgendwie auch nicht. Kenn mich aber selber nix aus. Was läuft schief?Code:$ ./test_ocatfs.py ./test_ocatfs.py: line 3: syntax error near unexpected token `(´ ./test_ocatfs.py: line 3: `def test_get_threads():´ $ ./ocatfs.py ./ocatfs.py: line 11: syntax error near unexpected token `(´ ./ocatfs.py: line 11: `class Thread(object):´ $ python --version Python 2.7.13 $ python3.4 ./test_ocatfs.py Traceback (most recent call last): File "./test_ocatfs.py", line 1, in <module> from ocatfs import ocatfs File "/usr/home/thrawn/src/ocatfs/ocatfs/ocatfs/ocatfs.py", line 5, in <module> import fuse ImportError: No module named 'fuse' $ kldstat | grep fuse 11 1 0xffffffff8244c000 fuse.ko $ echo "help('modules')" | python | grep -i fuse SimpleDialog codecs llfuse smtpd _sre fuse poplib token _ssl fuseparts posix tokenize $ echo "help('modules')" | python3.4 | grep -i fuse
Der ImportError betrifft beide Skripte. Brauch ich noch Python Packages?Code:$ python ./test_ocatfs.py Traceback (most recent call last): File "./ocatfs.py", line 6, in <module> import requests ImportError: No module named requests
Geiles Projekt!
GAT, am besten du holst dir pip und installierst die notwendigen Python-Pakete: requests, bs4, fusepy
Ich schaus mir auch gerade an.
overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025