Coder Social home page Coder Social logo

aws_labmda_sslv_scrape_job's People

Contributors

vfedotovs avatar

Watchers

 avatar

aws_labmda_sslv_scrape_job's Issues

BUG: Fix json formating inconsistency

Example of valid json based on https://jsonformatter.curiousconcept.com/

{
"bidim":[
"Pilseeta, rajons:Ogre un raj.",
"Pilseeta/pagasts:Ogre",
"Iela:Tiinuuzu iela 13",
"Istabas:2",
"Platiiba:40 m sq",
"Staavs:5/9",
"Seerija:Specpr.",
"Maajas tips:xyz",
"apt_price:52 000 EUR (1 300 sqm)",
"listed_date:06.10.2022"
]
}

Problems list that need to fixed to get valid json

  1. Remove tabs
  2. Remove special characters like ee, euro sign or sqm sign
  3. Remove \ charcter at end of item indict list

[ERROR] OSError: [Errno 30] Read-only file system: 'Ogre-raw-data-report.txt'

2023-02-19T00:15:30.198+00:00 START RequestId: 29a93056-839d-46f5-8dd4-ef3c4f341529 Version: $LATEST

2023-02-19T00:15:35.616+00:00 Extracting data from message URL 1

2023-02-19T00:15:35.616+00:00

Copy
[ERROR] OSError: [Errno 30] Read-only file system: 'Ogre-raw-data-report.txt'
Traceback (most recent call last):
File "/var/task/app.py", line 138, in handler
extract_data_from_url(valid_msg_urls)
File "/var/task/app.py", line 40, in extract_data_from_url
write_line(current_msg_url, dest_file)
File "/var/task/app.py", line 63, in write_line
with open(file_name, 'a') as the_file:
[ERROR] OSError: [Errno 30] Read-only file system: 'Ogre-raw-data-report.txt' Traceback (most recent call last): File "/var/task/app.py", line 138, in handler extract_data_from_url(valid_msg_urls) File "/var/task/app.py", line 40, in extract_data_from_url write_line(current_msg_url, dest_file) File "/var/task/app.py", line 63, in write_line with open(file_name, 'a') as the_file:

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.